Skip to content

Commit 994b2c9

Browse files
contrib/i-t: properly mount root's children with spaces
Signed-off-by: Ahelenia Ziemiańska <[email protected]>
1 parent 1b2799c commit 994b2c9

File tree

1 file changed

+4
-2
lines changed
  • contrib/initramfs/scripts

1 file changed

+4
-2
lines changed

contrib/initramfs/scripts/zfs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,11 +935,13 @@ 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}")
938+
filesystems="$("${ZFS}" list -oname -tfilesystem -H -r "${ZFS_BOOTFS}")"
939+
OLD_IFS="$IFS" ; IFS=" " # tab
939940
for fs in $filesystems $ZFS_INITRD_ADDITIONAL_DATASETS
940941
do
941-
mount_fs "$fs"
942+
IFS="$OLD_IFS" mount_fs "$fs"
942943
done
944+
IFS="$OLD_IFS"
943945

944946
touch /run/zfs_unlock_complete
945947
if [ -e /run/zfs_unlock_complete_notify ]; then

0 commit comments

Comments
 (0)