set hostname already in live system

that way artifacts like ssh keys have the
correct hostname from the beginning
master
lub 4 years ago
parent 6a2fab959d
commit 29038a5e6c

@ -48,6 +48,7 @@ mount -o bind /dev "$chroot/dev"
# set hostname
echo "$2" > "$chroot/etc/hostname"
hostname "$2"
# create hardware-setup copy for post-debootstrap

Loading…
Cancel
Save