livecd: remaster/livecd_gen_iso - bootsplash added

havner havner at pld-linux.org
Tue Jul 11 10:19:28 CEST 2006


Author: havner                       Date: Tue Jul 11 08:19:28 2006 GMT
Module: livecd                        Tag: HEAD
---- Log message:
- bootsplash added

---- Files affected:
livecd/remaster:
   livecd_gen_iso (1.19 -> 1.20) 

---- Diffs:

================================================================
Index: livecd/remaster/livecd_gen_iso
diff -u livecd/remaster/livecd_gen_iso:1.19 livecd/remaster/livecd_gen_iso:1.20
--- livecd/remaster/livecd_gen_iso:1.19	Mon Jul 10 16:26:25 2006
+++ livecd/remaster/livecd_gen_iso	Tue Jul 11 10:19:23 2006
@@ -64,6 +64,33 @@
 rm -rf $CD/boot/initrd.gz
 genromfs -f $CD/boot/initrd -d $INITRD -V "PLD initrd"
 busybox gzip $CD/boot/initrd
+# bootsplash
+if [ -r $ROOTFS/etc/sysconfig/bootsplash ] ; then
+	. $ROOTFS/etc/sysconfig/bootsplash
+fi
+if [ "$BOOT_SPLASH" = "yes" ]; then
+	if [ ! -x $ROOTFS/bin/splash.bin ]; then
+		echo "Failed to execute /bin/splash.bin. Is bootsplash package installed?" 1>&2
+	elif [ -z "$THEME" ]; then
+		echo "Please configure your /etc/sysconfig/bootsplash first." 1>&2
+		echo "Generating bootsplashes skipped." 1>&2
+	else
+		if [ -n "$BOOT_SPLASH_RESOLUTIONS" ]; then
+			for res in $BOOT_SPLASH_RESOLUTIONS; do
+				if [ -f "$ROOTFS/etc/bootsplash/themes/$THEME/config/bootsplash-$res.cfg" ]; then
+					$ROOTFS/bin/splash.bin -s -f "$ROOTFS/etc/bootsplash/themes/$THEME/config/bootsplash-$res.cfg" >> $CD/boot/initrd && \
+					[ -n "$verbose" ] && echo "Added $res $THEME theme to initrd."
+				else
+					echo "/etc/bootsplash/themes/$THEME/config/bootsplash-$res.cfg doesn't exist, skipped" 1>&2
+				fi
+			done
+		else
+			echo "No BOOT_SPLASH_RESOLUTIONS specified in /etc/sysconfig/bootsplash." 1>&2
+			echo "Not adding bootsplash to initrd." 1>&2
+		fi
+	fi
+fi
+
 echo done
 
 echo -n "Generating pldram... "
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/livecd/remaster/livecd_gen_iso?r1=1.19&r2=1.20&f=u



More information about the pld-cvs-commit mailing list