/var/tmp is supposed to store temporary data which should be preserved
over reboots, wheras /tmp is for short-term temporary data. Moreover
/tmp is usually tmpfs which may make generating initramfs a bit faster.
Thanks to Martin von Gagern <Martin.vGagern@xxxxxxx> for pointing that
out.
---
dracut.sh | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dracut.sh b/dracut.sh
index 1bf8ad9..fb8bd1e 100755
--- a/dracut.sh
+++ b/dracut.sh
@@ -544,8 +544,8 @@ elif [[ -f "$outfile" && ! -w "$outfile" ]]; then
exit 1
fi
-readonly TMPDIR=/var/tmp
-readonly initdir=$(mktemp --tmpdir=/var/tmp/ -d -t initramfs.XXXXXX)
+readonly TMPDIR=/tmp
+readonly initdir=$(mktemp --tmpdir=$TMPDIR/ -d -t initramfs.XXXXXX)
[ -d "$initdir" ] || {
dfatal "mktemp failed."
exit 1
--
1.7.8.5
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Home]
[Linux USB Devel]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]