From 77de10eb38e5e191674adaf754c0bbaef9d39d1d Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 2 Jan 2023 14:48:22 +0000 Subject: sys-fs/zfs-utils : revision bump --- sys-fs/zfs-utils/files/2.1.5-dracut-mount.patch | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sys-fs/zfs-utils/files/2.1.5-dracut-mount.patch (limited to 'sys-fs/zfs-utils/files/2.1.5-dracut-mount.patch') diff --git a/sys-fs/zfs-utils/files/2.1.5-dracut-mount.patch b/sys-fs/zfs-utils/files/2.1.5-dracut-mount.patch new file mode 100644 index 00000000..758f4b3a --- /dev/null +++ b/sys-fs/zfs-utils/files/2.1.5-dracut-mount.patch @@ -0,0 +1,29 @@ +https://github.com/openzfs/zfs/commit/07f2793e869196fcbcd5057d9ada377674262fe3 +https://bugs.gentoo.org/857228 + +From: Brian Behlendorf +Date: Wed, 29 Jun 2022 15:33:38 -0700 +Subject: [PATCH] dracut: fix typo in mount-zfs.sh.in +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Format the `zpool get` command correctly. The -o option must +be followed by "all" or the requested field name. + +Reviewed-by: Ahelenia ZiemiaƄska +Reviewed-by: George Melikov +Signed-off-by: Brian Behlendorf +Closes #13602 +--- a/contrib/dracut/90zfs/mount-zfs.sh.in ++++ b/contrib/dracut/90zfs/mount-zfs.sh.in +@@ -82,7 +82,7 @@ ZFS_DATASET="${ZFS_DATASET:-${root}}" + ZFS_POOL="${ZFS_DATASET%%/*}" + + +-if ! zpool get -Ho name "${ZFS_POOL}" > /dev/null 2>&1; then ++if ! zpool get -Ho value name "${ZFS_POOL}" > /dev/null 2>&1; then + info "ZFS: Importing pool ${ZFS_POOL}..." + # shellcheck disable=SC2086 + if ! zpool import -N ${ZPOOL_IMPORT_OPTS} "${ZFS_POOL}"; then + -- cgit v1.2.3