From a67cebf1bf0529abcefd6689d6483c1adf3c90e6 Mon Sep 17 00:00:00 2001 From: "dyoung@redhat.com" Date: Fri, 22 Jun 2012 14:50:34 +0800 Subject: [PATCH] Cleanup temp file leaved at /tmp/ module_setup.sh removed comment and blank lines of kdump.conf, then install it to initramfs, but it leaved the /tmp/$$-kdump.conf which should be removed. Signed-off-by: Dave Young Acked-by: Vivek Goyal --- dracut-module-setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh index 8c4942c..496a6a9 100755 --- a/dracut-module-setup.sh +++ b/dracut-module-setup.sh @@ -180,6 +180,7 @@ kdump_install_conf() { done < /etc/kdump.conf inst "/tmp/$$-kdump.conf" "/etc/kdump.conf" + rm -f /tmp/$$-kdump.conf } kdump_iscsi_get_rec_val() {