Add mnt symlink

This commit is contained in:
Dennis ten Hoove 2023-10-24 14:44:51 +00:00
parent 95ed8d1f32
commit a77d44cd47

View file

@ -170,6 +170,10 @@ if [[ $type == 'archlinux' ]]; then
mv $workdir/srv $workdir/var/srv || cleanup_and_quit 'Failed to move srv to var/srv'
ln -sv /var/srv $workdir/srv || cleanup_and_quit 'Failed to create srv symlink'
# mnt symlink
mv $workdir/mnt $workdir/var/mnt || cleanup_and_quit 'Failed to move mnt to var/mnt'
ln -sv /var/mnt $workdir/mnt || cleanup_and_quit 'Failed to create mnt symlink'
# 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 || cleanup_and_quit 'Failed to set root to read-only'