aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdracut/90zfs/module-setup.sh.in5
1 files changed, 1 insertions, 4 deletions
diff --git a/dracut/90zfs/module-setup.sh.in b/dracut/90zfs/module-setup.sh.in
index 2d0b335cf..b7a6f1d45 100755
--- a/dracut/90zfs/module-setup.sh.in
+++ b/dracut/90zfs/module-setup.sh.in
@@ -46,12 +46,9 @@ install() {
fi
# Synchronize initramfs and system hostid
- TMP=`mktemp`
AA=`hostid | cut -b 1,2`
BB=`hostid | cut -b 3,4`
CC=`hostid | cut -b 5,6`
DD=`hostid | cut -b 7,8`
- printf "\x$DD\x$CC\x$BB\x$AA" >$TMP
- inst_simple "$TMP" /etc/hostid
- rm "$TMP"
+ printf "\x$DD\x$CC\x$BB\x$AA" > "$initdir/etc/hostid"
}