From abe3a416a98281fe419551006235ab13561aa57f Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Fri, 25 Jul 2008 16:37:59 +0000 Subject: add support for splashy themes inclusion in ext2 initrd (used by One build process) --- scripts/make-boot-splash-raw | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/make-boot-splash-raw b/scripts/make-boot-splash-raw index 2ec07ab..9c201c0 100755 --- a/scripts/make-boot-splash-raw +++ b/scripts/make-boot-splash-raw @@ -42,7 +42,21 @@ if `/bin/zcat $initrd_file 2> /dev/null | /bin/cpio -t &> /dev/null`; then else $splash_dir/scripts/remove-boot-splash $initrd_file - if [[ -x /sbin/splash ]]; then + if [ -x /sbin/splashy ]; then + tmp_initrd=`mktemp` + tmp_dir=`mktemp -d` + gzip -dc $initrd_file > $tmp_initrd + mount -o loop $tmp_initrd $tmp_dir + rm -rf $tmp_dir/etc/splashy + for f in `/usr/sbin/splashy_find_files | grep ^/etc/splashy`; do + d=`dirname $f` + mkdir -p $tmp_dir$d + cp -aL $f $tmp_dir$d + done + umount $tmp_dir + gzip -c $tmp_initrd > $initrd_file + rm -f $tmp_initrd + elif [[ -x /sbin/splash ]]; then /sbin/splash -s -f $config >> $initrd_file fi fi -- cgit v1.2.1