Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 100240 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]
linuxrc.patch
linuxrc.patch (text/plain), 1.37 KB, created by
postmodern
on 2006-10-22 14:50:26 UTC
(
hide
)
Description:
linuxrc.patch
Filename:
MIME Type:
Creator:
postmodern
Created:
2006-10-22 14:50:26 UTC
Size:
1.37 KB
patch
obsolete
>--- linuxrc 2006-09-16 18:29:44.000000000 -0700 >+++ linuxrc 2006-10-22 13:28:00.000000000 -0700 >@@ -168,6 +168,9 @@ > nfsroot\=*) > NFSROOT=`parse_opt "${x}"` > ;; >+ crypt_root\=*) >+ CRYPT_ROOT=`parse_opt "${x}"` >+ ;; > esac > done > >@@ -211,9 +214,23 @@ > # Setup md device nodes if they dont exist > setup_md_device > >-# Start EVMS >+# Scan volumes > startVolumes > >+# Iinitialize encrypted root device >+if [ -n "${CRYPT_ROOT}" ] >+then >+ cryptsetup luksOpen ${CRYPT_ROOT} root || exit -1 >+ >+ if [ -n "${REAL_ROOT}" ] >+ then >+ # Rescan volumes >+ startVolumes >+ else >+ REAL_ROOT="/dev/mapper/root" >+ fi >+fi >+ > # Set up unionfs > mkdir -p ${NEW_ROOT} > setup_unionfs >@@ -361,26 +378,6 @@ > then > got_good_root=1 > >- #check if LUKS setup is needed >- elif [ `echo ${REAL_ROOT} | sed -e "s/\([^:]*\):.*/\1/"` = "luks" ] >- then >- LUKSdev=`echo ${REAL_ROOT} | sed -e "s/luks:\(.*\)/\1/"` >- if [ -e /sbin/cryptsetup ] >- then >- if cryptsetup isLuks ${LUKSdev} >- then >- good_msg "LUKS partition - opening $LUKSdev" >- cryptsetup luksOpen ${LUKSdev} root && >- REAL_ROOT=/dev/mapper/root && >- got_good_root=1 >- else >- bad_msg "${LUKSDEV} is not a LUKS partition" >- REAL_ROOT="" >- fi >- else >- bad_msg "This initrd does not support LUKS" >- REAL_ROOT="" >- fi > else > bad_msg "Block device ${REAL_ROOT} is not a valid root device..." > REAL_ROOT=""
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