Skip to content
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

Merged
merged 1 commit into from
Dec 29, 2019

Conversation

bencord0
Copy link
Contributor

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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation (a change to man pages or other documentation)

Checklist:

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]>
@behlendorf behlendorf requested a review from rlaager December 28, 2019 00:53
@behlendorf
Copy link
Contributor

Sorry about that sneaking in, thanks for the quick fix. @sam-lunt @ghfields follow up from #9764.

@behlendorf behlendorf added the Status: Code Review Needed Ready for review and testing label Dec 28, 2019
Copy link
Contributor

@ghfields ghfields left a 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
Copy link

codecov bot commented Dec 28, 2019

Codecov Report

Merging #9780 into master will decrease coverage by <1%.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master    #9780    +/-   ##
========================================
- Coverage      80%      80%   -<1%     
========================================
  Files         385      385            
  Lines      121475   121475            
========================================
- Hits        96680    96618    -62     
- Misses      24795    24857    +62
Flag Coverage Δ
#kernel 80% <ø> (ø) ⬇️
#user 67% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a6f6ef8...3e30dc5. Read the comment docs.

@sam-lunt
Copy link
Contributor

Ah, my bad, sorry about that. Good catch

@behlendorf behlendorf added Status: Accepted Ready to integrate (reviewed, tested) and removed Status: Code Review Needed Ready for review and testing labels Dec 29, 2019
@behlendorf behlendorf merged commit 153db76 into openzfs:master Dec 29, 2019
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Jan 2, 2020
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
tonyhutter pushed a commit to tonyhutter/zfs that referenced this pull request Jan 7, 2020
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
tonyhutter pushed a commit that referenced this pull request Jan 23, 2020
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Ready to integrate (reviewed, tested)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants