refactor(iso): Rely on select_part for EFI partition identification (#1)
This commit is contained in:
parent
10440fc6d7
commit
c27f0e9c7c
11
setup.sh
11
setup.sh
@ -209,13 +209,10 @@ function setup_zpool () {
|
|||||||
function mount_system () {
|
function mount_system () {
|
||||||
zfs mount "${zpool_name}"'/root/'"${zfs_arch_dataset_name}"
|
zfs mount "${zpool_name}"'/root/'"${zfs_arch_dataset_name}"
|
||||||
zfs mount -a
|
zfs mount -a
|
||||||
|
|
||||||
declare efi_part
|
local efi_part="$(select_part 'efi')"
|
||||||
efi_part="$(get_parts 'efi')"
|
mkdir -p '/mnt/efi'
|
||||||
if we_have_exactly_one_part 'efi' "${efi_part}"; then
|
mount "${efi_part}" '/mnt/efi'
|
||||||
mkdir -p '/mnt/efi'
|
|
||||||
mount "${efi_part}" '/mnt/efi'
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function copy_zpool_cache () {
|
function copy_zpool_cache () {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user