mirror_zfs/contrib/dracut/90zfs
kpande eb1a0b6174 Allow spaces in pool names for cmdline argument
PR #8114 quoted the ${ENCRYPTIONROOT} parameter to ensure we don't
lose spaces when unlocking root filesystem in the off chance that 
it has a space in its name.

Unfortunately, dracut and initramfs-tools do not actually get the 
quotes from the cmdline. If we use root=ZFS="root pool/filesystem 
name" the script still only sees root=ZFS=root and no quotation 
marks.

Because + is a reserved character in ZFS, it's used as a 
placeholder for spaces in the kernel cmdline.  In this way,
root=ZFS=root+pool/filesystem+name will properly expand by 
replacing the character with sed (POSIX compliant method).

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: bunder2015 <omfgbunder@gmail.com>
Signed-off-by: Kash Pande <kash@tripleback.net>
Issue #8114 
Closes #8117
2018-11-11 18:23:11 -08:00
..
.gitignore Add zfs-load-key.sh to .gitignore 2018-02-06 16:39:18 -08:00
export-zfs.sh.in Shellcheck cleanup for initrd scripts 2018-02-23 12:57:41 -08:00
Makefile.am Run zfs load-key if needed in dracut 2018-01-18 10:20:34 -08:00
module-setup.sh.in Use zfs-import.target in contrib/dracut 2018-07-31 10:15:41 -07:00
mount-zfs.sh.in Add quotations for ${ENCRYPTIONROOT} 2018-11-09 09:32:01 -08:00
parse-zfs.sh.in Allow spaces in pool names for cmdline argument 2018-11-11 18:23:11 -08:00
zfs-generator.sh.in Use zfs-import.target in contrib/dracut 2018-07-31 10:15:41 -07:00
zfs-lib.sh.in Shellcheck cleanup for initrd scripts 2018-02-23 12:57:41 -08:00
zfs-load-key.sh.in Shellcheck cleanup for initrd scripts 2018-02-23 12:57:41 -08:00
zfs-needshutdown.sh.in Run zfs load-key if needed in dracut 2018-01-18 10:20:34 -08:00