Fix new install.sh

This commit is contained in:
Tobias Strobel 2022-09-25 17:59:53 +02:00
parent 6dd20fb291
commit de79317fb3

View file

@ -20,7 +20,7 @@
# - Run: `# bash <(curl -sL https://link.rafe.li/dot)`
#
set -xeuo pipefail
set -uo pipefail
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
exec 1> >(tee "/root/stdout.log")
@ -135,6 +135,10 @@ mount -t btrfs -o subvol=@tmp,$o_btrfs LABEL=system /mnt/var/tmp
# Mount additional partitions
mount -o $o LABEL=EFI /mnt/efi
# Change default btrfs sub-volume (for DPS)
default_subvolume=$(btrfs subvolume list /mnt | grep "path @$" | cut -d ' ' -f2)
btrfs subvolume set-default ${default_subvolume} /mnt
# Disable CoW for /home due to large loopback files by systemd-homed
chattr +C /mnt/home
@ -187,6 +191,6 @@ systemctl --root /mnt enable systemd-resolved
systemctl --root /mnt enable systemd-homed
# Set root password
echo -n "password" | passwd -R /mnt root
echo "root:password" | chpasswd -R /mnt
echo "BOOTSTRAPPING FINISHED"