From b3f36598ba1cfba147824dca69e793c29e3b13eb Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 18 Mar 2020 17:16:54 +0100 Subject: Implement Network Config and Root Password --- stages/second_stage.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'stages/second_stage.sh') diff --git a/stages/second_stage.sh b/stages/second_stage.sh index 3070e50..1530a7d 100644 --- a/stages/second_stage.sh +++ b/stages/second_stage.sh @@ -42,3 +42,22 @@ touch /etc/locale.conf echo "LANG=$language" >> /etc/locale.conf touch /etc/vconsole.conf echo "KEYMAP=$keymap" >> /etc/vconsole.conf + + +# Network configuration + +touch /etc/hostname +echo "$hostname" > /etc/hostname +touch /etc/hosts +echo "127.0.0.1 localhost" >> /etc/hosts +echo "::1 localhost" >> /etc/hosts + + +# Initramfs + +### to be implemented + + +# Setting root password + +echo "root:${DEFAULT_PASSWORD}" | chpasswd -- cgit v1.2.3-70-g09d2