[kexec-tools/f17] Cleanup temp file leaved at /tmp/
Dave Young
yangrr at fedoraproject.org
Fri Aug 10 02:21:29 UTC 2012
commit 37148f4f7dc49c1f7e209880b14674945c55ae4f
Author: dyoung at redhat.com <dyoung at redhat.com>
Date: Fri Aug 10 10:11:28 2012 +0800
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 <dyoung at redhat.com>
Acked-by: Vivek Goyal <vgoyal at redhat.com>
dracut-module-setup.sh | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/dracut-module-setup.sh b/dracut-module-setup.sh
index 03e3894..6937409 100755
--- a/dracut-module-setup.sh
+++ b/dracut-module-setup.sh
@@ -96,4 +96,5 @@ install() {
inst "/sbin/makedumpfile" "/sbin/makedumpfile"
inst "/tmp/$$-kdump.conf" "/etc/kdump.conf"
inst_hook pre-pivot 9999 "$moddir/kdump.sh"
+ rm -f /tmp/$$-kdump.conf
}
More information about the scm-commits
mailing list