diff options
author | наб <[email protected]> | 2021-04-13 23:23:15 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2021-04-16 15:24:55 -0700 |
commit | ac541438a2fc5cf83a0fd7577691f6d68720cd5d (patch) | |
tree | b2cc65a111ecfb21f00249c72197e8464ccd9174 /contrib/initramfs/scripts/zfs | |
parent | d8ced6613d0fd508f43b6d2e4bb1d43c2330d8d2 (diff) |
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 #11898
Diffstat (limited to 'contrib/initramfs/scripts/zfs')
-rw-r--r-- | contrib/initramfs/scripts/zfs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/contrib/initramfs/scripts/zfs b/contrib/initramfs/scripts/zfs index 377f9efca..b7e9e5703 100644 --- a/contrib/initramfs/scripts/zfs +++ b/contrib/initramfs/scripts/zfs @@ -935,9 +935,14 @@ mountroot() # Go through the complete list (recursively) of all filesystems below # the real root dataset - filesystems=$("${ZFS}" list -oname -tfilesystem -H -r "${ZFS_BOOTFS}") - for fs in $filesystems $ZFS_INITRD_ADDITIONAL_DATASETS - do + filesystems="$("${ZFS}" list -oname -tfilesystem -H -r "${ZFS_BOOTFS}")" + OLD_IFS="$IFS" ; IFS=" +" + for fs in $filesystems; do + IFS="$OLD_IFS" mount_fs "$fs" + done + IFS="$OLD_IFS" + for fs in $ZFS_INITRD_ADDITIONAL_DATASETS; do mount_fs "$fs" done |