only make boot symlinks if bootpool

This commit is contained in:
midov 2021-08-12 17:26:43 +02:00
parent 97d9fb9791
commit 63068c0e73
1 changed files with 7 additions and 2 deletions

View File

@ -32,6 +32,12 @@ mount -o bind /home /"$nextroot"/home
workdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
"$workdir"/systemupdate.expect "$sudouser" "/$nextroot" "$packagemanager"
if [[ $bootpool == "true" ]]
then
umount /"$nextroot"/boot
rm -r /"$nextroot"/boot
ln -s /"$nextboot" /"$nextroot"/boot
fi
if [[ -f /boot/grub/grub.d/root_"$currentdate".cfg ]]
then
@ -43,11 +49,10 @@ else
sed -i "s/arch-root.*/arch-root_$currentdate/g" /boot/grub/grubenv
fi
sleep 2
umount -l /"$nextroot"/*
ln -s "$nextboot" /"$nextroot"/boot
#post update maintenance
read -r -p "Delete old clones?(y/N) " -e dialog
if [[ $dialog == y ]]