Symlink /usr/local to /var/usrlocal

This commit is contained in:
Dennis ten Hoove 2023-09-18 22:14:37 +02:00
parent 8b909ffaad
commit 6e9371c7e5

View file

@ -160,6 +160,10 @@ if [[ $type == 'archlinux' ]]; then
rm -rf $workdir/var/cache/pacman/pkg/*
rm -rf $workdir/var/lib/pacman/local/*
# Make /usr/local symlink in var
mv -v $workdir/usr/local $workdir/var/usrlocal
ln -s /var/usrlocal $workdir/usr/local
# Make subvolume read-only
printf "\e[1;34m-->\e[0m\e[1m Adding read-only property to subvolumes\e[0m\n"
btrfs property set -ts $workdir ro true