From 96da07dadb928b64203a9d40302dc5e88efb774e Mon Sep 17 00:00:00 2001 From: jedi Date: Thu, 11 Mar 2021 23:21:29 +0100 Subject: [PATCH] set hostname --- entry.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/entry.sh b/entry.sh index 624b4b0..3d472f6 100755 --- a/entry.sh +++ b/entry.sh @@ -5,6 +5,11 @@ function first_stage(){ set -e echo foo first_stage + echo -n "hostname: " + read -s hostname_in + export NEW_HOSTNAME=$hostname_in + echo + echo -n "luks password: " read -s luks_password_in export LUKS_PASSWORD=$luks_password_in @@ -110,6 +115,8 @@ function second_stage(){ ) | passwd unset ROOT_PASSWORD echo -n > /etc/motd + echo $NEW_HOSTNAME > /etc/hostname + hostname $NEW_HOSTNAME sed -i 's/main/main contrib non-free/g' /etc/apt/sources.list apt update apt install -y linux-image-amd64 grub2 cryptsetup btrfs-progs lvm2 firmware-iwlwifi locales tzdata keyboard-configuration console-common zsh intel-microcode