home: hub: mkinitfs

Download patch

ref: 2ec7750ef7d4c6a443b0fb04b1627efabb9d7c03
parent: 1f16a949870fd6a93835844aa91e075f9527c28e
author: Timo Teräs <timo.teras@iki.fi>
date: Tue Dec 2 04:34:35 CST 2014

init: fix splash fifo, and make config file optional

just having the fbsplash.ppm in boot media activates now splash.

--- a/initramfs-init.in
+++ b/initramfs-init.in
@@ -677,9 +677,17 @@
 	rm -f "$sysroot/etc/.default_boot_services"
 fi
 
-if [ "$KOPT_splash" != "no" -a -e $ALPINE_MNT/fbsplash.ppm -a -e $ALPINE_MNT/fbsplash.cfg ]; then
+if [ "$KOPT_splash" != "no" -a -e $ALPINE_MNT/fbsplash.ppm ]; then
+	local config
 	ebegin "Starting bootsplash (from $ALPINE_MNT)"
-	setsid fbsplash -T 16 -s $ALPINE_MNT/fbsplash.ppm -i $ALPINE_MNT/fbsplash.cfg -f $sysroot/$splashfile &
+	mkfifo $sysroot/$splashfile
+	if [ -e $ALPINE_MNT/fbsplash.cfg ]; then
+		config=$ALPINE_MNT/fbsplash.cfg
+	else
+		config=/tmp/fbsplash.cfg
+		echo "IMAGE_ALIGN=CM" > $config
+	fi
+	setsid fbsplash -T 16 -s $ALPINE_MNT/fbsplash.ppm -i $config -f $sysroot/$splashfile &
 	eend 0
 else
 	KOPT_splash="no"