From 11ef52579c3e2afe18c6cf2a1b370e684098eecf Mon Sep 17 00:00:00 2001 From: Umer Saleem Date: Mon, 19 Feb 2024 14:17:20 +0500 Subject: [PATCH] Add grub2-legacy for minimum list of features for grub2 compatibility To support older versions of grub, a minimum list of features required for boot pool for grub are added in grub2-legacy file under zpool/compatibility.d. The existing grub2 compatibility file lists all read-only features that can be enabled on boot pool for grub. Signed-off-by: Umer Saleem --- cmd/zpool/Makefile.am | 1 + cmd/zpool/compatibility.d/grub2-legacy | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 cmd/zpool/compatibility.d/grub2-legacy diff --git a/cmd/zpool/Makefile.am b/cmd/zpool/Makefile.am index d08b8e1791b6..dab879369283 100644 --- a/cmd/zpool/Makefile.am +++ b/cmd/zpool/Makefile.am @@ -141,6 +141,7 @@ dist_zpoolcompat_DATA = \ %D%/compatibility.d/freebsd-11.3 \ %D%/compatibility.d/freenas-9.10.2 \ %D%/compatibility.d/grub2 \ + %D%/compatibility.d/grub2-legacy \ %D%/compatibility.d/openzfs-2.0-freebsd \ %D%/compatibility.d/openzfs-2.0-linux \ %D%/compatibility.d/openzfs-2.1-freebsd \ diff --git a/cmd/zpool/compatibility.d/grub2-legacy b/cmd/zpool/compatibility.d/grub2-legacy new file mode 100644 index 000000000000..7bb212bf4d9d --- /dev/null +++ b/cmd/zpool/compatibility.d/grub2-legacy @@ -0,0 +1,8 @@ +# Minimum features which are supported by GRUB2 +async_destroy +embedded_data +empty_bpobj +enabled_txg +hole_birth +lz4_compress +spacemap_histogram