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
|
set -uo pipefail
|
||||||
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
|
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
|
||||||
|
|
||||||
REPO_URL="https:mkessler-arch.maximilian-kessler.de"
|
REPO_URL="https://mkessler-arch.maximilian-kessler.de"
|
||||||
MIRRORLIST_URL="https://archlinux.org/mirrorlist/?country=DE&protocol=https&use_mirror_status=on"
|
|
||||||
|
|
||||||
echo "Updating mirror list"
|
reflector
|
||||||
curl -s "$MIRRORLIST_URL" | \
|
|
||||||
sed -e 's/^#Server/Server/' -e '/^#/d' | \
|
|
||||||
rankmirrors -n 5 - > /etc/pacman.d/mirrorlist
|
|
||||||
|
|
||||||
### Get infomation from user ###
|
### Get infomation from user ###
|
||||||
hostname=$(dialog --stdout --inputbox "Enter hostname" 0 0) || exit 1
|
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
|
mount "${part_boot}" /mnt/boot --mkdir
|
||||||
swapon "${part_swap}"
|
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 ###
|
### Install and configure the basic system ###
|
||||||
# Receive and lsign signing key of custom repo
|
# Receive and lsign signing key of custom repo
|
||||||
pacman-key --recv-keys keyid "${key_fingerprint}"
|
pacman-key --recv-keys keyid "${key_fingerprint}"
|
||||||
pacman-key --lsign-key "${key_fingerprint}"
|
pacman-key --lsign-key "${key_fingerprint}"
|
||||||
|
|
||||||
|
echo "Installing packages into /mnt"
|
||||||
|
|
||||||
pacstrap /mnt mkessler-desktop
|
pacstrap /mnt mkessler-desktop
|
||||||
|
|
||||||
|
echo "Generating fstab file"
|
||||||
genfstab -U /mnt >> /mnt/etc/fstab
|
genfstab -U /mnt >> /mnt/etc/fstab
|
||||||
|
|
||||||
|
echo "Setting hostname"
|
||||||
echo "${hostname}" > /mnt/etc/hostname
|
echo "${hostname}" > /mnt/etc/hostname
|
||||||
|
|
||||||
|
echo "Configuring mkessler-arch repo in installed system"
|
||||||
# end for now here
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
|
|
||||||
### Set up custom repo on installed system as well
|
### Set up custom repo on installed system as well
|
||||||
cat >>/mnt/etc/pacman.conf <<EOF
|
cat >>/mnt/etc/pacman.conf <<EOF
|
||||||
|
|
||||||
[mkessler-arch]
|
[mkessler-arch]
|
||||||
Server = $REPO_URL
|
Server = $REPO_URL
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
echo "Finished installation"
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
||||||
arch-chroot /mnt pacman-key --recv-keys keyid "${key_fingerprint}"
|
arch-chroot /mnt pacman-key --recv-keys keyid "${key_fingerprint}"
|
||||||
arch-chroot /mnt pacman-key --lsign-key "${key_fingerprint}"
|
arch-chroot /mnt pacman-key --lsign-key "${key_fingerprint}"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue