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 315577 Details for
Bug 460702
initscripts should use plymouth to prompt for password
[?]
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]
The aforementioned patch
plymouth.patch (text/plain), 2.46 KB, created by
Ray Strode [halfline]
on 2008-09-02 18:51:48 UTC
(
hide
)
Description:
The aforementioned patch
Filename:
MIME Type:
Creator:
Ray Strode [halfline]
Created:
2008-09-02 18:51:48 UTC
Size:
2.46 KB
patch
obsolete
>Don't quit plymouth when relabling > >Instead just hide plymouth for the duration of the >relabel. >--- a/rc.d/rc.sysinit >+++ b/rc.d/rc.sysinit >@@ -57,9 +57,6 @@ disable_selinux() { > } > > relabel_selinux() { >- if [ -x /usr/bin/rhgb-client ] && /usr/bin/rhgb-client --ping ; then >- /usr/bin/rhgb-client --quit >- fi > # if /sbin/init is not labeled correctly this process is running in the > # wrong context, so a reboot will be required after relabel > REBOOTFLAG=`restorecon -v /sbin/init` >-- > >Don't quit plymouth when asking for LUKS passwords > >Instead have plymouth ask the user and decrypt the >drive. >--- a/rc.d/rc.sysinit >+++ b/rc.d/rc.sysinit >@@ -103,11 +103,22 @@ key_is_random() { > -o "$1" = "/dev/random" ] > } > >+find_crypto_mount_point() { >+ local fs_spec fs_file fs_vfstype remaining_fields >+ local fs >+ while read fs_spec fs_file remaining_fields; do >+ if [ "$fs_spec" = "/dev/mapper/$1" ]; then >+ echo $fs_file >+ break; >+ fi >+ done < /etc/fstab >+} >+ > # Because of a chicken/egg problem, init_crypto must be run twice. /var may be > # encrypted but /var/lib/random-seed is needed to initialize swap. > init_crypto() { > local have_random dst src key opt mode owner params makeswap skip arg opt >- local param value rc ret mke2fs mdir >+ local param value rc ret mke2fs mdir prompt mount_point > > ret=0 > have_random=$1 >@@ -194,10 +205,6 @@ init_crypto() { > ret=1 > continue > fi >- if [ -z "$key" -a -x /usr/bin/rhgb-client ] \ >- && /usr/bin/rhgb-client --ping ; then >- /usr/bin/rhgb-client --quit >- fi > if [ -z "$makeswap" ] && cryptsetup isLuks "$src" 2>/dev/null ; then > if key_is_random "$key"; then > echo $"$dst: LUKS requires non-random key, skipping" >@@ -208,8 +215,16 @@ init_crypto() { > echo "$dst: options are invalid for LUKS partitions," \ > "ignoring them" > fi >- /sbin/cryptsetup ${key:+-d $key} luksOpen "$src" "$dst" <&1 && success || failure >+ if [ -n "$key" ]; then >+ /sbin/cryptsetup -d $key luksOpen "$src" "$dst" <&1 2>/dev/null && success || failure >+ else >+ mount_point="$(find_crypto_mount_point $dst)" >+ [ -n "$mount_point" ] || mount_point=${src##*/} >+ prompt=$(printf $"%s is password protected" "$mount_point") >+ plymouth ask-for-password --prompt "$prompt" --command="/sbin/cryptsetup luksOpen -T1 $src $dst" <&1 >+ fi > else >+ plymouth --hide-splash > /sbin/cryptsetup $params ${key:+-d $key} create "$dst" "$src" <&1 2>/dev/null && success || failure > fi > rc=$? >--
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 460702
: 315577