From: "Peter Hjalmarsson" <xake@rymdraket.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/genkernel:master commit in: doc/, defaults/
Date: Sun, 31 Mar 2013 12:47:18 +0000 (UTC) [thread overview]
Message-ID: <1364733908.e4ab952d639ff69e57fefa3e3855ee81d4d555fb.xake@gentoo> (raw)
commit: e4ab952d639ff69e57fefa3e3855ee81d4d555fb
Author: Peter Hjalmarsson <xake <AT> rymdraket <DOT> net>
AuthorDate: Tue Mar 5 21:45:45 2013 +0000
Commit: Peter Hjalmarsson <xake <AT> rymdraket <DOT> net>
CommitDate: Sun Mar 31 12:45:08 2013 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=e4ab952d
Add rootflags to switches we understand
Nearly every general documentation including the one in the
kernel tree and the scripts for GRUB2 all expects this flag
to work.
Signed-off-by: Peter Hjalmarsson <xake <AT> 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*=<...>::
next reply other threads:[~2013-03-31 12:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-31 12:47 Peter Hjalmarsson [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-03-14 20:05 [gentoo-commits] proj/genkernel:master commit in: doc/, defaults/ Thomas Deutschmann
2021-03-14 20:05 Thomas Deutschmann
2020-01-29 22:28 Thomas Deutschmann
2020-01-14 1:36 Thomas Deutschmann
2019-07-18 20:15 Thomas Deutschmann
2018-06-12 21:26 Robin H. Johnson
2016-05-16 6:55 Robin H. Johnson
2013-04-29 8:56 Fabio Erculiani
2013-04-25 6:22 Fabio Erculiani
2012-11-20 0:59 Robin H. Johnson
2012-01-05 16:51 Sebastian Pipping
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1364733908.e4ab952d639ff69e57fefa3e3855ee81d4d555fb.xake@gentoo \
--to=xake@rymdraket.net \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox