Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 100407 Details for
Bug 152441
Improved LUKS encrypted root support
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
initrd.scripts.patch (against genkernel rev 450)
initrd.scripts.patch (text/plain), 1.18 KB, created by
postmodern
on 2006-10-24 13:09:59 UTC
(
hide
)
Description:
initrd.scripts.patch (against genkernel rev 450)
Filename:
MIME Type:
Creator:
postmodern
Created:
2006-10-24 13:09:59 UTC
Size:
1.18 KB
patch
obsolete
>--- initrd.scripts.orig 2006-10-24 12:55:40.000000000 -0700 >+++ initrd.scripts 2006-10-24 12:58:07.000000000 -0700 >@@ -492,7 +492,7 @@ > > # Here, we check for /dev/device-mapper, and if it exists, we setup a > # a symlink, which should hopefully fix bug #142775 and bug #147015 >- if [ -e /dev/device-mapper ] >+ if [ -e /dev/device-mapper ] && [ ! -e /dev/mapper/control ] > then > mkdir -p /dev/mapper > ln -sf /dev/device-mapper /dev/mapper/control >@@ -549,6 +549,37 @@ > fi > } > >+startLUKS() { >+ if [ -n "${LUKS_ROOT}" ] >+ then >+ if [ -e /sbin/cryptsetup ] >+ then >+ if cryptsetup isLuks ${LUKS_ROOT} >+ then >+ good_msg "Opening LUKS device ${LUKS_ROOT}" >+ >+ cryptsetup luksOpen ${LUKS_ROOT} root >+ if [ ! "$?" -eq '0' ] >+ then >+ bad_msg "Failed open LUKS device ${LUKS_ROOT}" >+ fi >+ >+ if [ -n "${REAL_ROOT}" ] >+ then >+ # Rescan volumes >+ startVolumes >+ else >+ REAL_ROOT="/dev/mapper/root" >+ fi >+ else >+ bad_msg "The LUKS device ${LUKS_ROOT} does not contain a LUKS hearder" >+ fi >+ else >+ bad_msg "The initrd does not support LUKS" >+ fi >+ fi >+} >+ > sdelay() { > # Sleep a specific number of seconds if SDELAY is set otherwise only sleep > # 1 second
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 152441
:
100240
|
100335
|
100336
|
100405
| 100407 |
100724
|
100725