set hostname

This commit is contained in:
j3d1 2021-03-11 23:21:29 +01:00
parent 6469d453d4
commit 96da07dadb

View file

@ -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