All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Use /tmp instead of /var/tmp for temporary data.
@ 2012-03-26 11:39 Amadeusz Żołnowski
  0 siblings, 0 replies; only message in thread
From: Amadeusz Żołnowski @ 2012-03-26 11:39 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA; +Cc: Amadeusz Żołnowski

/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-hi6Y0CQ0nG0@public.gmane.org> 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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-03-26 11:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-26 11:39 [PATCH] Use /tmp instead of /var/tmp for temporary data Amadeusz Żołnowski

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.