-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zfs-load-key.sh: ${ZFS} is not the zfs binary #9780
Conversation
A change[1] was merged yesterday that should refer to the zfs binary in the initramfs, but is actually an unset shell variable. This commit changes this line to call `zfs` directly like the surrounding code. [1]: cb5b875 Signed-off-by: Ben Cordero <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, $ZFS works in the initramfs script, not dracut. Thanks for the quick find.
Codecov Report
@@ Coverage Diff @@
## master #9780 +/- ##
========================================
- Coverage 80% 80% -<1%
========================================
Files 385 385
Lines 121475 121475
========================================
- Hits 96680 96618 -62
- Misses 24795 24857 +62
Continue to review full report at Codecov.
|
Ah, my bad, sorry about that. Good catch |
A change[1] was merged yesterday that should refer to the zfs binary in the initramfs, but is actually an unset shell variable. This commit changes this line to call `zfs` directly like the surrounding code. [1]: cb5b875 Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Garrett Fields <[email protected]> Reviewed-by: Richard Laager <[email protected]> Signed-off-by: Ben Cordero <[email protected]> Closes openzfs#9780
A change[1] was merged yesterday that should refer to the zfs binary in the initramfs, but is actually an unset shell variable. This commit changes this line to call `zfs` directly like the surrounding code. [1]: cb5b875 Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Garrett Fields <[email protected]> Reviewed-by: Richard Laager <[email protected]> Signed-off-by: Ben Cordero <[email protected]> Closes openzfs#9780
A change[1] was merged yesterday that should refer to the zfs binary in the initramfs, but is actually an unset shell variable. This commit changes this line to call `zfs` directly like the surrounding code. [1]: cb5b875 Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Garrett Fields <[email protected]> Reviewed-by: Richard Laager <[email protected]> Signed-off-by: Ben Cordero <[email protected]> Closes #9780
Motivation and Context
This change fixes the zfs-load-key.sh dracut script so that
zfs get
can retrieve the key location.Description
I think this line, committed yesterday, broke booting with zfs encryption passwords
https://github.com/zfsonlinux/zfs/pull/9764/files#diff-df72a4107f2673aa772b7d7acc9923f5R41
How Has This Been Tested?
Tested locally by rebuilding and booting my initramfs with this change applied ontop of today's master branch.
Types of changes
Checklist:
Signed-off-by
.