[readonly/geninitrd: 500/1068] - avoid packing initramfs twice for fbsplash, now symlinks are preserved too
draenog
draenog at pld-linux.org
Sat Nov 2 19:54:25 CET 2013
commit b7feffb31c0bdab74c3ada8b000e473c55c95f41
Author: Elan Ruusamäe <glen at pld-linux.org>
Date: Fri Nov 2 17:58:17 2007 +0000
- avoid packing initramfs twice for fbsplash, now symlinks are preserved too
svn-id: @8971
geninitrd | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/geninitrd b/geninitrd
index b02c30a..b26e0b9 100755
--- a/geninitrd
+++ b/geninitrd
@@ -1494,6 +1494,7 @@ initrd_gen_dmraid() {
initrd_gen_bootsplash() {
local target="$1"
+ debug "generating bootsplash"
if [ ! -x /bin/splash.bin ]; then
echo >&2 "Failed to execute /bin/splash.bin. Is bootsplash package installed?"
elif [ -z "$THEME" ]; then
@@ -1517,7 +1518,7 @@ initrd_gen_bootsplash() {
}
initrd_gen_fbsplash() {
- local target="$1"
+ debug "generating fbsplash"
if [ ! -x /usr/bin/splash_geninitramfs ]; then
echo >&2 "Failed to execute /usr/bin/splash_geninitramfs. Is splashutils package installed?"
@@ -1528,7 +1529,7 @@ initrd_gen_fbsplash() {
if [ -n "$FB_SPLASH_RESOLUTIONS" ]; then
for res in $FB_SPLASH_RESOLUTIONS; do
if [ -f "/etc/splash/$SPLASH_THEME/$res.cfg" ]; then
- /usr/bin/splash_geninitramfs -a $target -r $res $SPLASH_THEME && \
+ /usr/bin/splash_geninitramfs -c $MNTIMAGE -r $res $SPLASH_THEME && \
debug "Added $res $SPLASH_THEME theme to initramfs."
else
echo >&2 "/etc/splash/$SPLASH_THEME/$res.cfg doesn't exist, skipped"
@@ -1900,6 +1901,11 @@ else
umount_all
fi
+if is_yes "$FB_SPLASH"; then
+ initrd_gen_fbsplash
+fi
+
+
(cd "$MNTIMAGE"; tar cf - .) | (cd "$MNTPOINT"; tar xf -)
case "$INITRDFS" in
@@ -1949,10 +1955,6 @@ if is_yes "$BOOT_SPLASH"; then
initrd_gen_bootsplash "$target"
fi
-if is_yes "$FB_SPLASH"; then
- initrd_gen_fbsplash "$target"
-fi
-
rm -rf "$MNTIMAGE" "$MNTPOINT" "$IMAGE"
# vim:ts=4:sw=4:noet:fdm=marker
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/readonly/geninitrd.git/commitdiff/147754ca159d40ca5eb541074dc043d8cbd92090
More information about the pld-cvs-commit
mailing list