7-add-legacy-bios-support #8

Merged
hygienic-books merged 12 commits from 7-add-legacy-bios-support into main 2023-10-24 00:25:35 +00:00
Showing only changes of commit 33e7498529 - Show all commits

View File

@ -113,6 +113,7 @@ function uefi_or_bios () {
'neither. Cowardly exiting ...' 'neither. Cowardly exiting ...'
exit 77 exit 77
fi fi
export part_schema="${part_schema}"
} }
function get_partitions () { function get_partitions () {
@ -349,11 +350,13 @@ function mount_system () {
if [[ "${part_schema}" = 'mbr' ]]; then if [[ "${part_schema}" = 'mbr' ]]; then
boot_drive="${zfs_parent}" boot_drive="${zfs_parent}"
export boot_drive="${boot_drive}"
boot_part="$(select_part 'boot' "${zfs_parent:?}")" boot_part="$(select_part 'boot' "${zfs_parent:?}")"
mkdir -p '/mnt/boot/syslinux' mkdir -p '/mnt/boot/syslinux'
mount "${boot_part}" '/mnt/boot/syslinux' mount "${boot_part}" '/mnt/boot/syslinux'
else else
efi_drive="${zfs_parent}" efi_drive="${zfs_parent}"
export efi_drive="${efi_drive}"
efi_part="$(select_part 'boot' "${zfs_parent:?}")" efi_part="$(select_part 'boot' "${zfs_parent:?}")"
mkdir -p '/mnt/efi' mkdir -p '/mnt/efi'
mount "${efi_part}" '/mnt/efi' mount "${efi_part}" '/mnt/efi'