From 29038a5e6c594c71bbb6c651d0e878f5cd27feb6 Mon Sep 17 00:00:00 2001 From: lub Date: Sat, 21 Dec 2019 18:35:05 +0100 Subject: [PATCH] set hostname already in live system that way artifacts like ssh keys have the correct hostname from the beginning --- setup.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.sh b/setup.sh index 8c4554d..a79a1a4 100755 --- a/setup.sh +++ b/setup.sh @@ -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