update arch install script
This commit is contained in:
parent
45a658a41b
commit
ff893df5ab
1 changed files with 20 additions and 11 deletions
|
@ -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 <<EOF
|
||||
|
||||
[mkessler-arch]
|
||||
Server = $REPO_URL
|
||||
EOF
|
||||
|
||||
echo "Finished installation"
|
||||
|
||||
exit 0
|
||||
|
||||
arch-chroot /mnt pacman-key --recv-keys keyid "${key_fingerprint}"
|
||||
arch-chroot /mnt pacman-key --lsign-key "${key_fingerprint}"
|
||||
|
||||
|
|
Loading…
Reference in a new issue