Skip to content

Commit c96aa01

Browse files
nabijaczleweliRageLtMan
authored andcommitted
contrib/i-t: properly mount root's children with spaces
Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes openzfs#11898
1 parent f18a690 commit c96aa01

File tree

1 file changed

+8
-3
lines changed
  • contrib/initramfs/scripts

1 file changed

+8
-3
lines changed

contrib/initramfs/scripts/zfs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -935,9 +935,14 @@ mountroot()
935935

936936
# Go through the complete list (recursively) of all filesystems below
937937
# the real root dataset
938-
filesystems=$("${ZFS}" list -oname -tfilesystem -H -r "${ZFS_BOOTFS}")
939-
for fs in $filesystems $ZFS_INITRD_ADDITIONAL_DATASETS
940-
do
938+
filesystems="$("${ZFS}" list -oname -tfilesystem -H -r "${ZFS_BOOTFS}")"
939+
OLD_IFS="$IFS" ; IFS="
940+
"
941+
for fs in $filesystems; do
942+
IFS="$OLD_IFS" mount_fs "$fs"
943+
done
944+
IFS="$OLD_IFS"
945+
for fs in $ZFS_INITRD_ADDITIONAL_DATASETS; do
941946
mount_fs "$fs"
942947
done
943948

0 commit comments

Comments
 (0)