diff --git a/installer/install-arch b/installer/install-arch index 84fd692..9d3d75c 100755 --- a/installer/install-arch +++ b/installer/install-arch @@ -5,13 +5,9 @@ set -uo pipefail trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR -REPO_URL="https:mkessler-arch.maximilian-kessler.de" -MIRRORLIST_URL="https://archlinux.org/mirrorlist/?country=DE&protocol=https&use_mirror_status=on" +REPO_URL="https://mkessler-arch.maximilian-kessler.de" -echo "Updating mirror list" -curl -s "$MIRRORLIST_URL" | \ - sed -e 's/^#Server/Server/' -e '/^#/d' | \ - rankmirrors -n 5 - > /etc/pacman.d/mirrorlist +reflector ### Get infomation from user ### hostname=$(dialog --stdout --inputbox "Enter hostname" 0 0) || exit 1 @@ -101,25 +97,38 @@ mount "${part_home}" /mnt/home --mkdir mount "${part_boot}" /mnt/boot --mkdir swapon "${part_swap}" + +echo "Finished setting up luks, lvm and mounted all partitions" +sleep 1 +echo "Retrivieng signing key for mkessler-arch repository..." + ### Install and configure the basic system ### # Receive and lsign signing key of custom repo pacman-key --recv-keys keyid "${key_fingerprint}" pacman-key --lsign-key "${key_fingerprint}" +echo "Installing packages into /mnt" + pacstrap /mnt mkessler-desktop + +echo "Generating fstab file" genfstab -U /mnt >> /mnt/etc/fstab + +echo "Setting hostname" echo "${hostname}" > /mnt/etc/hostname - -# end for now here -exit 0 - - +echo "Configuring mkessler-arch repo in installed system" ### Set up custom repo on installed system as well cat >>/mnt/etc/pacman.conf <