-
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
Force systems with kernel option "quiet" to display TTY password prompt #9731
Conversation
460f09b
to
dfb9c6d
Compare
The #9723 fixes allow certain systems (Ubuntu) to avoid needing to go to TTY prompting. This PR, however fixes systems that do utilize TTY and have "quiet" has the kernel option set. With #9723, there are fewer systems, but doesn't eliminate all TTY use cases. |
contrib/initramfs/scripts/zfs.in
Outdated
|
||
# If root dataset is encrypted... | ||
if ! [ "${ENCRYPTIONROOT}" = "-" ]; then | ||
KEYSTATUS="$(${ZFS} get -H -o value keystatus "${ENCRYPTIONROOT}")" | ||
KEYSTATUS="$(get_fs_value "${ENCRYPTIONROOT}" keystatus)" |
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.
Personally, I'd prefer these be in separate commits (one PR seems fine), since they're unrelated.
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.
Yea, was back and forth about if they were trivial enough with myself. Additional PR inbound shortly.
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.
Done. Became #9736
Other than eliminating the unnecessary |
dfb9c6d
to
ee722f0
Compare
ee722f0
to
95d3be6
Compare
Signed-off-by: Garrett Fields <[email protected]>
95d3be6
to
a7adede
Compare
Codecov Report
@@ Coverage Diff @@
## master #9731 +/- ##
==========================================
+ Coverage 67% 79% +13%
==========================================
Files 338 420 +82
Lines 106419 123654 +17235
==========================================
+ Hits 71086 98083 +26997
+ Misses 35333 25571 -9762
Continue to review full report at Codecov.
|
On systems that utilize TTY for password entry, if the kernel option "quiet" is set, the system would appear to freeze on a blank screen, when in fact it is waiting for password entry from the user. Since TTY is the fallback method, this has no effect on systemd or plymouth password prompting. By temporarily setting "printk" to "7", running the command, then resuming with the original "printk" state, the user can see the password prompt. Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Garrett Fields <[email protected]> Closes openzfs#9731
On systems that utilize TTY for password entry, if the kernel option "quiet" is set, the system would appear to freeze on a blank screen, when in fact it is waiting for password entry from the user. Since TTY is the fallback method, this has no effect on systemd or plymouth password prompting. By temporarily setting "printk" to "7", running the command, then resuming with the original "printk" state, the user can see the password prompt. Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Garrett Fields <[email protected]> Closes openzfs#9731
On systems that utilize TTY for password entry, if the kernel option "quiet" is set, the system would appear to freeze on a blank screen, when in fact it is waiting for password entry from the user. Since TTY is the fallback method, this has no effect on systemd or plymouth password prompting. By temporarily setting "printk" to "7", running the command, then resuming with the original "printk" state, the user can see the password prompt. Reviewed-by: Richard Laager <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Garrett Fields <[email protected]> Closes #9731
Motivation and Context
On systems that utilize TTY for password entry, if the kernel option "quiet"
is set, the system would appear to freeze on a blank screen, when in fact it is waiting for
password entry from the user.
Since TTY is the fallback method, this has no effect on systemd or plymouth password prompting
Description
By temporarily setting "printk" to "7", running the command, then
resuming with the original "printk" state, the user can see the password prompt.
How Has This Been Tested?
Prompt now successfully displays on my system (Ubuntu 20.04 Daily) with "quiet" on kernel line
Types of changes
Checklist:
Signed-off-by
.