public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Amadeusz Żołnowski" <aidecoe@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/genkernel:dracut commit in: /
Date: Sun, 17 Apr 2011 18:14:56 +0000 (UTC)	[thread overview]
Message-ID: <b3d5157aaa14e936335b4b7010eedce1b607a67d.aidecoe@gentoo> (raw)

commit:     b3d5157aaa14e936335b4b7010eedce1b607a67d
Author:     Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 17 18:11:51 2011 +0000
Commit:     Amadeusz Żołnowski <aidecoe <AT> gentoo <DOT> org>
CommitDate: Sun Apr 17 18:11:51 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commit;h=b3d5157a

gen_dracut: Updated to latest changes in Dracut options

---
 gen_dracut.sh |   23 +++++++++++++++--------
 1 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/gen_dracut.sh b/gen_dracut.sh
index 62b431d..acc76af 100755
--- a/gen_dracut.sh
+++ b/gen_dracut.sh
@@ -2,7 +2,7 @@
 # $Id$
 
 BASIC_MODULES=dash\ i18n\ kernel-modules\ resume\ rootfs-block\ terminfo
-BASIC_MODULES+=\ udev-rules\ uswsusp\ base
+BASIC_MODULES+=\ udev-rules\ base
 MODULES=lvm\ dmraid\ iscsi\ mdraid\ crypt\ multipath\ plymouth\ gensplash
 
 dracut_modules() {
@@ -26,7 +26,7 @@ dracut_modules() {
 }
 
 create_initramfs() {
-	local tmprd="${TMPDIR}/initramfs-${KV}" opts='-f -v' add_files=()
+	local tmprd="${TMPDIR}/initramfs-${KV}" opts='-f -L=3 -M' add_files=()
 
 	print_info 1 'initramfs: >> Initializing Dracut...'
 
@@ -42,7 +42,7 @@ create_initramfs() {
 	if isTrue "${NORAMDISKMODULES}" || isTrue "${BUILD_STATIC}"
 	then
 		print_info 1 '           >> Not copying kernel modules and firmware...'
-		opts+=\ --ignore-kernel-modules
+		opts+=\ --no-kernel
 	else
 		isTrue "${FIRMWARE}" && opts+=" --fwdir ${FIRMWARE_DIR}"
 		[[ ${FIRMWARE_FILES} ]] && add_files+=(${FIRMWARE_FILES})
@@ -54,17 +54,24 @@ create_initramfs() {
 	opts+=" ${EXTRA_OPTIONS}"
 	opts+=" $(dracut_modules)"
 
-	export DRACUT_GENSPLASH_THEME=${GENSPLASH_THEME}
-	export DRACUT_GENSPLASH_RES=${GENSPLASH_RES}
-	print_info 1 "           >> DRACUT_GENSPLASH_THEME=${GENSPLASH_THEME}"
-	print_info 1 "           >> DRACUT_GENSPLASH_RES=${GENSPLASH_RES}"
+	if isTrue "${GENSPLASH}"
+	then
+		export DRACUT_GENSPLASH_THEME=${GENSPLASH_THEME}
+		export DRACUT_GENSPLASH_RES=${GENSPLASH_RES}
+		print_info 1 "           >> DRACUT_GENSPLASH_THEME=${GENSPLASH_THEME}"
+		print_info 1 "           >> DRACUT_GENSPLASH_RES=${GENSPLASH_RES}"
+	fi
 	print_info 1 "           >> dracut ${opts} '${tmprd}' '${KV}'"
 	if [[ ${DRACUT_DIR} ]]; then
 		cd "${DRACUT_DIR}"
 		eval ./dracut ${opts} \'${tmprd}\' \'${KV}\'
 		cd - >/dev/null
 	else
-		eval dracut ${opts} \'${tmprd}\' \'${KV}\'
+		eval dracut ${opts} \'${tmprd}\' \'${KV}\' | while read module; do
+			[[ \ $MODULES\  =~ \ $module\  ]] && \
+				module="${BOLD}${module}${NORMAL}"
+			print_info 1 "              >> Including module: $module"
+		done
 	fi
 
 	if isTrue "${INTEGRATED_INITRAMFS}"



             reply	other threads:[~2011-04-17 18:15 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-04-17 18:14 Amadeusz Żołnowski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-06-25  8:35 [gentoo-commits] proj/genkernel:dracut commit in: / Amadeusz Żołnowski
2012-01-08 10:53 Amadeusz Żołnowski
2011-08-10 10:47 Amadeusz Żołnowski
2011-08-10 10:47 Amadeusz Żołnowski
2011-08-10 10:47 Amadeusz Żołnowski
2011-04-17 18:14 Amadeusz Żołnowski
2011-04-17 18:14 Amadeusz Żołnowski
2011-04-17 18:14 Amadeusz Żołnowski
2011-04-17 18:14 Amadeusz Żołnowski
2011-04-17 18:14 Amadeusz Żołnowski

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=b3d5157aaa14e936335b4b7010eedce1b607a67d.aidecoe@gentoo \
    --to=aidecoe@gentoo.org \
    --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