summaryrefslogtreecommitdiff
path: root/stages/second_stage.sh
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-03-18 17:16:54 +0100
committerxengineering <mail2xengineering@protonmail.com>2020-03-18 17:16:54 +0100
commitb3f36598ba1cfba147824dca69e793c29e3b13eb (patch)
treed301f990109d2e0be302888ff914b4398c55120e /stages/second_stage.sh
parent9a3fb771fbce4b9ace6ee4bebdd60c9985210dff (diff)
downloadarchinstall-b3f36598ba1cfba147824dca69e793c29e3b13eb.tar
archinstall-b3f36598ba1cfba147824dca69e793c29e3b13eb.tar.zst
archinstall-b3f36598ba1cfba147824dca69e793c29e3b13eb.zip
Implement Network Config and Root Password
Diffstat (limited to 'stages/second_stage.sh')
-rw-r--r--stages/second_stage.sh19
1 files changed, 19 insertions, 0 deletions
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