set hostname
This commit is contained in:
parent
6469d453d4
commit
96da07dadb
1 changed files with 7 additions and 0 deletions
7
entry.sh
7
entry.sh
|
@ -5,6 +5,11 @@ function first_stage(){
|
||||||
set -e
|
set -e
|
||||||
echo foo first_stage
|
echo foo first_stage
|
||||||
|
|
||||||
|
echo -n "hostname: "
|
||||||
|
read -s hostname_in
|
||||||
|
export NEW_HOSTNAME=$hostname_in
|
||||||
|
echo
|
||||||
|
|
||||||
echo -n "luks password: "
|
echo -n "luks password: "
|
||||||
read -s luks_password_in
|
read -s luks_password_in
|
||||||
export LUKS_PASSWORD=$luks_password_in
|
export LUKS_PASSWORD=$luks_password_in
|
||||||
|
@ -110,6 +115,8 @@ function second_stage(){
|
||||||
) | passwd
|
) | passwd
|
||||||
unset ROOT_PASSWORD
|
unset ROOT_PASSWORD
|
||||||
echo -n > /etc/motd
|
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
|
sed -i 's/main/main contrib non-free/g' /etc/apt/sources.list
|
||||||
apt update
|
apt update
|
||||||
apt install -y linux-image-amd64 grub2 cryptsetup btrfs-progs lvm2 firmware-iwlwifi locales tzdata keyboard-configuration console-common zsh intel-microcode
|
apt install -y linux-image-amd64 grub2 cryptsetup btrfs-progs lvm2 firmware-iwlwifi locales tzdata keyboard-configuration console-common zsh intel-microcode
|
||||||
|
|
Loading…
Reference in a new issue