]> git.proxmox.com Git - mirror_zfs.git/commit
dracut/zfs-load-key.sh: properly remove prefixes
authoralaviss <alaviss@users.noreply.github.com>
Wed, 30 Oct 2019 21:38:41 +0000 (21:38 +0000)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 30 Oct 2019 21:38:41 +0000 (14:38 -0700)
commit936e2d6d3ea8745d8a4148ec9fa7b060fd64448a
tree572461f362e6289ff58a900f1c60b4d18cc4ce54
parentf63e2fe132588fab595f3524afd14bc4b4e0386b
dracut/zfs-load-key.sh: properly remove prefixes

Removes the 'ZFS=' prefix from $BOOTFS instead of $root. This makes sure
that the 'zfs:' prefix remains stripped so that users with
'root=zfs:dataset' cmdline can have key loaded on boot again.

Reviewed-by: Garrett Fields <ghfields@gmail.com>
Reviewed-by: Dacian Reece-Stremtan <dacianstremtan@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Hiếu Lê <leorize+oss@disroot.org>
Closes #9520
contrib/dracut/90zfs/zfs-load-key.sh.in