feat(os): Finalize and umount on legacy BIOS machine (#7)

This commit is contained in:
hygienic-books 2023-10-23 02:05:25 +02:00
parent 84266e66cf
commit 2f41de67c6

View File

@ -845,7 +845,11 @@ function insert_zbm_postconf_hook () {
function umount_all () {
#3.10
if [[ "${part_schema}" = 'mbr' ]]; then
umount '/mnt/boot/syslinux'
else
umount '/mnt/efi'
fi
zfs umount -a
zpool export "${zpool_name}"
}
@ -858,8 +862,10 @@ function finalize_os_setup () {
configure_reflector #3.5
configure_zfs #3.6
configure_zfs_mount_gen #3.7
if [[ "${part_schema}" = 'gpt' ]]; then
set_new_uefi_boot_entries #3.8
insert_zbm_postconf_hook #3.9
fi
umount_all #3.10
}