diff options
-rw-r--r-- | hook/hostname | 2 |
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" } |