Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 293083 Details for
Bug 430410
RFE: use zenity during rhgb to ask for password to cryptsetup disks
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to use zenity for asking passwords
rc.sysinit-crypt-zenity.patch (text/plain), 1.18 KB, created by
Dr. Tilmann Bubeck
on 2008-01-27 19:56:58 UTC
(
hide
)
Description:
Patch to use zenity for asking passwords
Filename:
MIME Type:
Creator:
Dr. Tilmann Bubeck
Created:
2008-01-27 19:56:58 UTC
Size:
1.18 KB
patch
obsolete
>--- /tmp/aaa/etc/rc.sysinit 2008-01-27 20:08:18.000000000 +0100 >+++ /etc/rc.sysinit 2008-01-27 20:44:34.000000000 +0100 >@@ -189,9 +189,15 @@ > ret=1 > continue > fi >- if [ -z "$key" -a -x /usr/bin/rhgb-client ] \ >+ if [ -x /usr/bin/zenity -a -x /usr/bin/rhgb-client ] \ > && /usr/bin/rhgb-client --ping ; then >- /usr/bin/rhgb-client --quit >+ export DISPLAY=:9 >+ pw=$(/usr/bin/zenity --entry --hide-text --title "Password?" --text "Please enter disk password:") >+ fi >+ >+ if [ -z "$key" -a -z "$pw" -a -x /usr/bin/rhgb-client ] \ >+ && /usr/bin/rhgb-client --ping ; then >+ /usr/bin/rhgb-client --quit > fi > if cryptsetup isLuks "$src" 2>/dev/null; then > if key_is_random "$key"; then >@@ -203,7 +209,11 @@ > echo "$dst: options are invalid for LUKS partitions," \ > "ignoring them" > fi >- /sbin/cryptsetup ${key:+-d $key} luksOpen "$src" "$dst" <&1 >+ if [ -z "$pw" ]; then >+ /sbin/cryptsetup ${key:+-d $key} luksOpen "$src" "$dst" <&1 >+ else >+ echo -n "$pw" | /sbin/cryptsetup -d - luksOpen "$src" "$dst" >+ fi > else > /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null > fi
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 430410
: 293083