[PATCH 27/50] Don't leave cruft behind in /tmp
parent
bc6b0dec9e
commit
2c6fc388b0
1
dracut
1
dracut
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue