summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Bouchard <louis.bouchard@ubuntu.com>2016-05-18 18:17:59 +0200
committerLouis Bouchard <louis.bouchard@ubuntu.com>2016-05-18 18:19:20 +0200
commitc87225299429a2bda616cfa4a12a30dd81157d60 (patch)
treeb671b40cbdf28c2d16adc856da872d12bb9b867a
parente5f1fd297bd7549f5e275830ebb2b20eac798702 (diff)
[kdump-tools] Fix path for kdump-tools.cfg and add cleanup
The kdump-tools.cfg file is going to /etc/default/grub.d. Also need to remove it when uninstalled. Signed-off-by: Louis Bouchard <louis.bouchard@ubuntu.com>
-rw-r--r--debian/kdump-tools.dirs1
-rwxr-xr-xdebian/kdump-tools.postinst4
-rwxr-xr-xdebian/kdump-tools.postrm1
3 files changed, 4 insertions, 2 deletions
diff --git a/debian/kdump-tools.dirs b/debian/kdump-tools.dirs
new file mode 100644
index 0000000..0003f9f
--- /dev/null
+++ b/debian/kdump-tools.dirs
@@ -0,0 +1 @@
+etc/default/grub.d
diff --git a/debian/kdump-tools.postinst b/debian/kdump-tools.postinst
index d4dfdee..112f116 100755
--- a/debian/kdump-tools.postinst
+++ b/debian/kdump-tools.postinst
@@ -51,10 +51,10 @@ case "$1" in
fi
;;
ppc64el)
- sed -i "s/UNCONFIGURED/$PPC_PRESET/" /etc/grub.d/kdump-tools.cfg
+ sed -i "s/UNCONFIGURED/$PPC_PRESET/" /etc/default/grub.d/kdump-tools.cfg
;;
*)
- sed -i "s/UNCONFIGURED/$DEF_PRESET/" /etc/grub.d/kdump-tools.cfg
+ sed -i "s/UNCONFIGURED/$DEF_PRESET/" /etc/default/grub.d/kdump-tools.cfg
;;
esac
;;
diff --git a/debian/kdump-tools.postrm b/debian/kdump-tools.postrm
index 3b32e3e..c7b8487 100755
--- a/debian/kdump-tools.postrm
+++ b/debian/kdump-tools.postrm
@@ -15,6 +15,7 @@ case "$1" in
sed -i "s/ crashkernel=.*M//" /etc/zipl.conf
zipl
fi
+ rm -rf /etc/default/grub.d/kdump-tools.cfg
;;
purge)
rm -rf /var/lib/kdump