[PATCH 27/50] Don't leave cruft behind in /tmp

master
Victor Lowther 2009-02-13 04:42:36 -08:00 committed by Dave Jones
parent bc6b0dec9e
commit 2c6fc388b0
1 changed files with 1 additions and 0 deletions

1
dracut
View File

@ -38,6 +38,7 @@ switchroot=$dsrc/switch_root
rulesdir=$dsrc/rules.d

initdir=$(mktemp -d -t initramfs.XXXXXX)
trap 'rm -rf "$initdir"' 0 # clean up after ourselves no matter how we die.

# executables that we have to have
exe="/bin/bash /bin/mount /bin/mknod /bin/mkdir /sbin/modprobe /sbin/udevd /sbin/udevadm /sbin/nash /sbin/pidof /bin/sleep /usr/sbin/chroot"