From cf28aae2b207514c0376e7d96ad1d5dacfdaab4d Mon Sep 17 00:00:00 2001 From: Andy Fiddaman Date: Wed, 6 Dec 2023 12:24:07 +0000 Subject: [PATCH] image: include dumpadm.conf that disables running savecore on boot --- image/templates/files/dumpadm.conf | 9 +++++++++ image/templates/gimlet/ramdisk-02-trim.json | 4 ++++ 2 files changed, 13 insertions(+) create mode 100644 image/templates/files/dumpadm.conf diff --git a/image/templates/files/dumpadm.conf b/image/templates/files/dumpadm.conf new file mode 100644 index 0000000..5a8d829 --- /dev/null +++ b/image/templates/files/dumpadm.conf @@ -0,0 +1,9 @@ +# +# dumpadm.conf +# +# Configuration parameters for system crash dump. +# Do NOT edit this file by hand -- use dumpadm(8) instead. +# +DUMPADM_CONTENT=curproc +DUMPADM_ENABLE=no +DUMPADM_CSAVE=on diff --git a/image/templates/gimlet/ramdisk-02-trim.json b/image/templates/gimlet/ramdisk-02-trim.json index 32772e6..a44a3eb 100644 --- a/image/templates/gimlet/ramdisk-02-trim.json +++ b/image/templates/gimlet/ramdisk-02-trim.json @@ -100,6 +100,10 @@ "file": "/etc/motd", "src": "motd", "owner": "root", "group": "sys", "mode": "0644" }, + { "t": "ensure_file", + "file": "/etc/dumpadm.conf", + "src": "dumpadm.conf", + "owner": "root", "group": "other", "mode": "0644" }, { "t": "ensure_dir", "with": "omicron1", "dir": "/usr/lib/brand/omicron1/baseline",