fix grub install error (#75)

Co-authored-by: Nemo <9478806+terem42@users.noreply.github.com>
This commit is contained in:
Cong Zhang
2025-04-22 05:01:11 +08:00
committed by GitHub
parent 556157ed33
commit 587d3a1f4f

View File

@@ -559,21 +559,7 @@ echo "======= create zfs pools and datasets =========="
# shellcheck disable=SC2086 # shellcheck disable=SC2086
zpool create \ zpool create \
-o cachefile=/etc/zpool.cache \ -o cachefile=/etc/zpool.cache \
-o ashift=12 -d \ -o compatibility=grub2 \
-o feature@async_destroy=enabled \
-o feature@bookmarks=enabled \
-o feature@embedded_data=enabled \
-o feature@empty_bpobj=enabled \
-o feature@enabled_txg=enabled \
-o feature@extensible_dataset=enabled \
-o feature@filesystem_limits=enabled \
-o feature@hole_birth=enabled \
-o feature@large_blocks=enabled \
-o feature@lz4_compress=enabled \
-o feature@spacemap_histogram=enabled \
-o feature@zpool_checkpoint=enabled \
-O acltype=posixacl -O canmount=off -O compression=lz4 \
-O devices=off -O normalization=formD -O relatime=on -O xattr=sa \
-O mountpoint=/boot -R $c_zfs_mount_dir -f \ -O mountpoint=/boot -R $c_zfs_mount_dir -f \
$v_bpool_name $pools_mirror_option "${bpool_disks_partitions[@]}" $v_bpool_name $pools_mirror_option "${bpool_disks_partitions[@]}"