refactor(iso): Rely on select_part for ZFS partition identification (#1)

This commit is contained in:
hygienic-books 2023-02-21 03:02:28 +01:00
parent c27f0e9c7c
commit a970a3d179

View File

@ -570,25 +570,7 @@ function main () {
set_ntp
update_pacman_db
install_pkgs 'jq'
declare zfs_part
zfs_part="$(get_parts 'zfs')"
if we_have_exactly_one_part 'zfs' "${zfs_part}"; then
printf -- 'Creating zpool on partition '"'"'%s'"'"' ...\n' "${zfs_part}"
install_zfs
setup_zpool "${zfs_part}"
mount_system
copy_zpool_cache
install_archlinux
gen_fstab
set_hostname
set_locale
add_zfs_hook_to_initramfs
set_initramfs_build_list
add_zfs_files_to_new_os
enter_chroot
# We're done in chroot
finalize_os_setup
fi
zfs_part="$(select_part 'zfs')"
fi
}