Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 341048 Details for
Bug 449190
genkernel-3.4.5 uses real_rootflags instead of rootflags
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against genkernel git to add support for rootflags
0001-Add-rootflags-to-switches-we-understand.patch (text/plain), 2.40 KB, created by
Xake
on 2013-03-05 22:28:13 UTC
(
hide
)
Description:
Patch against genkernel git to add support for rootflags
Filename:
MIME Type:
Creator:
Xake
Created:
2013-03-05 22:28:13 UTC
Size:
2.40 KB
patch
obsolete
>From 91afa2ea2098cf3a549c579d9f17efa9e7238dcf Mon Sep 17 00:00:00 2001 >From: Peter Hjalmarsson <xake@rymdraket.net> >Date: Tue, 5 Mar 2013 22:45:45 +0100 >Subject: [PATCH] Add rootflags to switches we understand > >Nearly every general documentation including the one in the >2.6 kernel tree and the scripts for GRUB2 all expects this flag >to work. > >Signed-off-by: Peter Hjalmarsson <xake@rymdraket.net> >--- > defaults/linuxrc | 24 +++++++++++++++++------- > doc/genkernel.8.txt | 8 ++++++-- > 2 files changed, 23 insertions(+), 9 deletions(-) > >diff --git a/defaults/linuxrc b/defaults/linuxrc >index f1e20ce..703652d 100755 >--- a/defaults/linuxrc >+++ b/defaults/linuxrc >@@ -37,7 +37,7 @@ CMDLINE=$(cat /proc/cmdline) > # Scan CMDLINE for any specified real_root= or cdroot arguments > FAKE_ROOT='' > FAKE_INIT='' >-REAL_ROOTFLAGS='' >+FAKE_ROOTFLAGS='' > INIT_OPTS='' > ROOTFSTYPE='auto' > CRYPT_SILENT=0 >@@ -236,6 +236,9 @@ do > real_rootflags=*) > REAL_ROOTFLAGS=${x#*=} > ;; >+ rootflags=*) >+ FAKE_ROOTFLAGS=${x#*=} >+ ;; > rootfstype=*) > ROOTFSTYPE=${x#*=} > ;; >@@ -267,13 +270,20 @@ do > esac > done > >-if [ -z "${REAL_ROOT}" -a \( "${CDROOT}" = '0' \) -a \( "${FAKE_ROOT}" != "/dev/ram0" \) ] >-then >- REAL_ROOT="${FAKE_ROOT}" >-fi >-if [ -z "${REAL_INIT}" -a \( "${CDROOT}" = '0' \) -a \( "${FAKE_INIT}" != "/linuxrc" \) ] >+if [ \( "${CDROOT}" = '0' \) ] > then >- REAL_INIT="${FAKE_INIT}" >+ if [ -z "${REAL_ROOT}" -a \( "${FAKE_ROOT}" != "/dev/ram0" \) ] >+ then >+ REAL_ROOT="${FAKE_ROOT}" >+ fi >+ if [ -z "${REAL_INIT}" -a \( "${FAKE_INIT}" != "/linuxrc" \) ] >+ then >+ REAL_INIT="${FAKE_INIT}" >+ fi >+ if [ -z "${REAL_ROOTFLAGS}" ] >+ then >+ REAL_ROOTFLAGS="${FAKE_ROOTFLAGS}" >+ fi > fi > > # Set variables based on the value of REAL_ROOT >diff --git a/doc/genkernel.8.txt b/doc/genkernel.8.txt >index 4691a98..86d7d53 100644 >--- a/doc/genkernel.8.txt >+++ b/doc/genkernel.8.txt >@@ -545,9 +545,13 @@ which the ramdisk scripts would recognize. > *aufs*:: > Enables support for AUFS2 (if available in the kernel). > >-*real_rootflags*=<...>:: >+*rootflags*=<...>:: > Additional flags to mount the real root system with. >- For example *real_rootflags*=noatime would make "-o ro,noatime". >+ For example *rootflags*=noatime would make "-o ro,noatime". >+ >+*real_rootflags*=<...>:: >+ Legacy kernel parameter from kernel-2.4 initrd. >+ Does the same as *rootflags*=, which should be used in its place. > > *real_resume*=<...>:: > *resume*=<...>:: >-- >1.8.1.5 >
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 449190
: 341048