summaryrefslogtreecommitdiffstats
path: root/hook
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2014-09-01 16:48:05 +0200
committerGravatar Christian Hesse <mail@eworm.de>2014-09-01 16:48:05 +0200
commitd508f0e4bb80883de30fb4f171950032f4c5f9d8 (patch)
tree3ab6ff75a2f06451f64e50f2a453e8260eb0d161 /hook
parentacf0df3ca880eb4e5385fcdac21b4c9c920f8b4a (diff)
downloadmkinitcpio-hostname-d508f0e4bb80883de30fb4f171950032f4c5f9d8.tar.gz
mkinitcpio-hostname-d508f0e4bb80883de30fb4f171950032f4c5f9d8.tar.zst
remove trailing whitespace
Diffstat (limited to 'hook')
-rw-r--r--hook/hostname2
1 files changed, 1 insertions, 1 deletions
diff --git a/hook/hostname b/hook/hostname
index 6421987..a612fef 100644
--- a/hook/hostname
+++ b/hook/hostname
@@ -11,7 +11,7 @@ run_latehook() {
msg ":: Setting hostname to random string..."
hostname="$(cut -d- -f1 < /proc/sys/kernel/random/boot_id)"
fi
-
+
echo -n "${hostname}" > "${newroot}/etc/hostname"
sed -i "/^127.0.0.1/s/$/\t${hostname}/" "${newroot}/etc/hosts"
}