Update grub, and umount it all.
This commit is contained in:
parent
ae1889f32f
commit
adb32cec27
1 changed files with 17 additions and 0 deletions
|
@ -123,6 +123,23 @@ function prepare_target() {
|
|||
${cmd} mount -o noatime,ssd,subvol=@swap "$rootmount" /target/swap
|
||||
${cmd} btrfs filesystem mkswapfile --size "$(get_hibernate_size)g" --uuid clear /target/swap/hibernate.swp
|
||||
fi
|
||||
|
||||
if [[ "$SWAP" || "$BootPart" == "@boot" ]]; then
|
||||
${cmd} arch-chroot /target update-grub2
|
||||
fi
|
||||
|
||||
for subvol in "${!SUBVOLS_DEFAULT[@]}"
|
||||
do
|
||||
${cmd} umount /target/"${SUBVOLS_DEFAULT[$subvol]}"
|
||||
done
|
||||
|
||||
if [[ "$SWAP" ]]; then
|
||||
${cmd} umount /target/swap
|
||||
fi
|
||||
|
||||
${cmd} umount /target/boot/efi
|
||||
${cmd} umount /target/boot
|
||||
${cmd} umount /target
|
||||
}
|
||||
|
||||
function expert_step() {
|
||||
|
|
Loading…
Reference in a new issue