diff options
author | xengineering <mail2xengineering@protonmail.com> | 2020-03-18 17:16:54 +0100 |
---|---|---|
committer | xengineering <mail2xengineering@protonmail.com> | 2020-03-18 17:16:54 +0100 |
commit | b3f36598ba1cfba147824dca69e793c29e3b13eb (patch) | |
tree | d301f990109d2e0be302888ff914b4398c55120e | |
parent | 9a3fb771fbce4b9ace6ee4bebdd60c9985210dff (diff) | |
download | archinstall-b3f36598ba1cfba147824dca69e793c29e3b13eb.tar archinstall-b3f36598ba1cfba147824dca69e793c29e3b13eb.tar.zst archinstall-b3f36598ba1cfba147824dca69e793c29e3b13eb.zip |
Implement Network Config and Root Password
-rw-r--r-- | archinstall.sh | 2 | ||||
-rw-r--r-- | stages/second_stage.sh | 19 |
2 files changed, 20 insertions, 1 deletions
diff --git a/archinstall.sh b/archinstall.sh index 6f02551..40f6575 100644 --- a/archinstall.sh +++ b/archinstall.sh @@ -70,7 +70,7 @@ export boot_mode="unknown" # alternatives: "bios" or "uefi" export path_to_disk="/dev/sda" # e.g. "/dev/sda" ######################## REMOVE FOR PRODUCTION export luks_encryption="no" # alternative: "yes" export path_to_timezone="/usr/share/zoneinfo/Europe/Berlin" -export locales_to_generate="de_DE.UTF-8 UTF-8\nde_DE ISO-8859-1\nde_DE@euro ISO-8859-15\n" +export locales_to_generate="de_DE.UTF-8 UTF-8" # currently just one option export language="de_DE.UTF-8" export keymap="de-latin1" export hostname="archlinux" # will be set to a user-chosen hostname 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 |