Fix new install.sh
This commit is contained in:
parent
6dd20fb291
commit
de79317fb3
1 changed files with 6 additions and 2 deletions
|
@ -20,7 +20,7 @@
|
||||||
# - Run: `# bash <(curl -sL https://link.rafe.li/dot)`
|
# - 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
|
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR
|
||||||
|
|
||||||
exec 1> >(tee "/root/stdout.log")
|
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 additional partitions
|
||||||
mount -o $o LABEL=EFI /mnt/efi
|
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
|
# Disable CoW for /home due to large loopback files by systemd-homed
|
||||||
chattr +C /mnt/home
|
chattr +C /mnt/home
|
||||||
|
|
||||||
|
@ -187,6 +191,6 @@ systemctl --root /mnt enable systemd-resolved
|
||||||
systemctl --root /mnt enable systemd-homed
|
systemctl --root /mnt enable systemd-homed
|
||||||
|
|
||||||
# Set root password
|
# Set root password
|
||||||
echo -n "password" | passwd -R /mnt root
|
echo "root:password" | chpasswd -R /mnt
|
||||||
|
|
||||||
echo "BOOTSTRAPPING FINISHED"
|
echo "BOOTSTRAPPING FINISHED"
|
||||||
|
|
Loading…
Reference in a new issue