From e9eff2b1cdf7879b88f681dc18025e5826e83770 Mon Sep 17 00:00:00 2001 From: Jakob Hagl Date: Thu, 14 Nov 2019 07:56:31 +0100 Subject: [PATCH] Add support for external configuration file --- archinstall.sh | 6 ++---- chrootinstall.sh | 5 +---- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/archinstall.sh b/archinstall.sh index d82fdf8..0403a1c 100755 --- a/archinstall.sh +++ b/archinstall.sh @@ -4,10 +4,7 @@ set -euxo pipefail loadkeys de-latin1 -readonly HDD="/dev/sda" -readonly ROOTPART="/dev/sda2" -readonly BOOTPART="/dev/sda1" -readonly HOST="archbox" +source config.conf # this script creats a fresh arch linux install @@ -45,6 +42,7 @@ pacstrap /mnt base base-devel genfstab -U /mnt >> /mnt/etc/fstab cp chrootinstall.sh /mnt +cp config.conf /mnt chmod +x /mnt/chrootinstall.sh diff --git a/chrootinstall.sh b/chrootinstall.sh index 3bb1b7f..7a569a4 100644 --- a/chrootinstall.sh +++ b/chrootinstall.sh @@ -4,10 +4,7 @@ set -euxo pipefail loadkeys de-latin1 -readonly HDD="/dev/sda" -readonly ROOTPART="/dev/sda2" -readonly BOOTPART="/dev/sda1" -readonly HOST="archbox" +source config.conf #starting installation inside chroot env ln -sf /usr/share/zoneinfo/Europe/Vienna /etc/localtime