2013-09-27 10:51:51 +02:00
|
|
|
Index: plymouth-0.8.8_git201309032142/configure.ac
|
2012-06-21 16:20:37 +02:00
|
|
|
===================================================================
|
2013-09-27 10:51:51 +02:00
|
|
|
--- plymouth-0.8.8_git201309032142.orig/configure.ac
|
|
|
|
+++ plymouth-0.8.8_git201309032142/configure.ac
|
|
|
|
@@ -302,6 +302,7 @@ AC_CONFIG_FILES([Makefile
|
2012-02-17 14:55:24 +01:00
|
|
|
themes/spinner/Makefile
|
|
|
|
themes/script/Makefile
|
|
|
|
images/Makefile
|
|
|
|
+ scripts/setup-plymouth.sh
|
|
|
|
scripts/plymouth-generate-initrd
|
|
|
|
scripts/plymouth-populate-initrd
|
|
|
|
scripts/plymouth-set-default-theme
|
2013-09-27 10:51:51 +02:00
|
|
|
Index: plymouth-0.8.8_git201309032142/scripts/boot-plymouth.chroot.sh
|
2012-06-21 16:20:37 +02:00
|
|
|
===================================================================
|
2012-02-17 14:55:24 +01:00
|
|
|
--- /dev/null
|
2013-09-27 10:51:51 +02:00
|
|
|
+++ plymouth-0.8.8_git201309032142/scripts/boot-plymouth.chroot.sh
|
2012-06-21 16:20:37 +02:00
|
|
|
@@ -0,0 +1,23 @@
|
2012-02-17 14:55:24 +01:00
|
|
|
+#!/bin/bash
|
|
|
|
+#%stage: setup
|
|
|
|
+#%depends: plymouth
|
2012-06-21 16:20:37 +02:00
|
|
|
+#%programs: /usr/bin/plymouth /usr/sbin/plymouthd /usr/bin/readlink
|
2012-02-17 14:55:24 +01:00
|
|
|
+#%dontshow
|
|
|
|
+
|
2012-06-21 16:20:37 +02:00
|
|
|
+ply_init_is_systemd()
|
|
|
|
+{
|
|
|
|
+ local d="$init"
|
|
|
|
+ [ -n "$d" ] || return 1
|
|
|
|
+ if [ -L "/root$d" ]; then
|
|
|
|
+ d=`readlink "/root$d"`
|
|
|
|
+ fi
|
|
|
|
+ [ "${d##*/}" = systemd ] || return 1
|
|
|
|
+ return 0
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+if ply_init_is_systemd; then
|
|
|
|
+ plymouth update-root-fs --new-root-dir=/root
|
|
|
|
+else
|
|
|
|
+ echo "init $init is not systemd, terminate plymouth"
|
|
|
|
+ plymouth quit
|
|
|
|
+fi
|
2013-09-27 10:51:51 +02:00
|
|
|
Index: plymouth-0.8.8_git201309032142/scripts/boot-plymouth.sh
|
2012-06-21 16:20:37 +02:00
|
|
|
===================================================================
|
2012-02-17 14:55:24 +01:00
|
|
|
--- /dev/null
|
2013-09-27 10:51:51 +02:00
|
|
|
+++ plymouth-0.8.8_git201309032142/scripts/boot-plymouth.sh
|
|
|
|
@@ -0,0 +1,23 @@
|
2012-02-17 14:55:24 +01:00
|
|
|
+#!/bin/bash
|
|
|
|
+#%stage: boot
|
|
|
|
+#%depends: start udev kms
|
2012-02-17 17:08:23 +01:00
|
|
|
+#%programs: /usr/bin/plymouth /usr/sbin/plymouthd
|
2013-09-27 10:51:51 +02:00
|
|
|
+#%if: -z "$root_luks" -a -z "$luks"
|
2012-02-17 14:55:24 +01:00
|
|
|
+
|
2012-08-08 16:39:00 +02:00
|
|
|
+enable_plymouth=1
|
|
|
|
+for o in $(cat /proc/cmdline) ; do
|
|
|
|
+ case "$o" in
|
|
|
|
+ shell*|plymouth.enable=0*|rd.plymouth=0*)
|
|
|
|
+ enable_plymouth=0
|
|
|
|
+ break
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
+done
|
|
|
|
+if [ "$enable_plymouth" = "1" ]; then
|
|
|
|
+ mkdir --mode 755 /run/plymouth
|
|
|
|
+
|
|
|
|
+ /usr/sbin/plymouthd --attach-to-session --pid-file /run/plymouth/pid
|
2012-02-21 10:52:47 +01:00
|
|
|
+
|
2012-08-08 16:39:00 +02:00
|
|
|
+ plymouth show-splash
|
|
|
|
+fi
|
2012-02-17 14:55:24 +01:00
|
|
|
+
|
2013-09-27 10:51:51 +02:00
|
|
|
Index: plymouth-0.8.8_git201309032142/scripts/setup-plymouth.sh.in
|
2012-06-21 16:20:37 +02:00
|
|
|
===================================================================
|
2012-02-17 14:55:24 +01:00
|
|
|
--- /dev/null
|
2013-09-27 10:51:51 +02:00
|
|
|
+++ plymouth-0.8.8_git201309032142/scripts/setup-plymouth.sh.in
|
2012-10-12 11:05:23 +02:00
|
|
|
@@ -0,0 +1,59 @@
|
2012-02-17 14:55:24 +01:00
|
|
|
+#!/bin/bash
|
|
|
|
+#
|
|
|
|
+#%stage: setup
|
|
|
|
+#%depends: start
|
|
|
|
+
|
|
|
|
+# We don't need to copy the binaries since boot-plymouth.sh does that for us
|
|
|
|
+
|
|
|
|
+[ -z "$tmp_mnt" ] && exit 1
|
|
|
|
+
|
|
|
|
+THEME=$(plymouth-set-default-theme)
|
|
|
|
+
|
|
|
|
+PLUGIN_PATH=$(plymouth --get-splash-plugin-path)
|
|
|
|
+
|
2012-04-27 22:19:28 +02:00
|
|
|
+MODULE=$(grep "ModuleName *= *" @PLYMOUTH_DATADIR@/plymouth/themes/${THEME}/${THEME}.plymouth | sed 's/ModuleName *= *//')
|
2012-02-17 14:55:24 +01:00
|
|
|
+
|
|
|
|
+if [ ! -f "$PLUGIN_PATH/${MODULE}.so" ]; then
|
|
|
|
+ echo "The default plymouth plugin ($MODULE) doesn't exist." > /dev/stderr
|
|
|
|
+ exit 1
|
|
|
|
+fi
|
|
|
|
+
|
2012-04-26 18:01:04 +02:00
|
|
|
+FILES="/usr/share/plymouth/themes/text/text.plymouth \
|
|
|
|
+ /usr/share/plymouth/themes/details/details.plymouth \
|
|
|
|
+ /usr/share/plymouth/plymouthd.defaults \
|
|
|
|
+ /usr/share/plymouth/themes/${THEME}/* \
|
|
|
|
+ /etc/plymouth/plymouthd.conf \
|
2012-07-30 10:32:08 +02:00
|
|
|
+ /usr/share/fonts/uni/unifont.pcf.gz /etc/os-release \
|
2012-04-26 18:51:59 +02:00
|
|
|
+ /etc/fonts/fonts.conf \
|
2012-10-12 11:05:23 +02:00
|
|
|
+ /etc/fonts/conf.d/69-unifont.conf "
|
2012-02-17 14:55:24 +01:00
|
|
|
+
|
|
|
|
+PLUGINS="${PLUGIN_PATH}/details.so \
|
|
|
|
+ ${PLUGIN_PATH}/text.so \
|
2012-04-05 16:46:03 +02:00
|
|
|
+ ${PLUGIN_PATH}/label.so \
|
2012-02-17 14:55:24 +01:00
|
|
|
+ ${PLUGIN_PATH}/${MODULE}.so \
|
|
|
|
+ ${PLUGIN_PATH}/renderers/drm.so \
|
|
|
|
+ ${PLUGIN_PATH}/renderers/frame-buffer.so"
|
|
|
|
+
|
|
|
|
+for file in $FILES; do
|
|
|
|
+ install -D $file $tmp_mnt/$file
|
|
|
|
+done
|
|
|
|
+
|
|
|
|
+for plugin in $PLUGINS; do
|
|
|
|
+ mkdir -p $tmp_mnt/$(dirname $plugin)
|
|
|
|
+ cp_bin $plugin $tmp_mnt/$plugin
|
|
|
|
+done
|
2012-04-28 09:01:46 +02:00
|
|
|
+
|
|
|
|
+_libdir=`rpm --eval '%{_lib}'`
|
2012-10-11 11:17:16 +02:00
|
|
|
+mkdir -p $tmp_mnt/etc/pango
|
2012-04-28 09:01:46 +02:00
|
|
|
+if [ "$_libdir" == "lib64" ];
|
|
|
|
+ then
|
|
|
|
+ _pangodir=`pango-querymodules-64 | grep ModulesPath | awk '{print $4}'`
|
2012-10-11 11:17:16 +02:00
|
|
|
+ pango-querymodules-64 > $tmp_mnt/etc/pango/pango.modules
|
2012-08-22 13:44:32 +02:00
|
|
|
+ pangobasicfc="${_pangodir}/pango-basic-fc.so"
|
2012-04-28 09:01:46 +02:00
|
|
|
+ else
|
|
|
|
+ _pangodir=`pango-querymodules | grep ModulesPath | awk '{print $4}'`
|
2012-10-11 11:17:16 +02:00
|
|
|
+ pango-querymodules > $tmp_mnt/etc/pango/pango.modules
|
2012-08-22 13:44:32 +02:00
|
|
|
+ pangobasicfc="${_pangodir}/pango-basic-fc.so"
|
2012-04-28 09:01:46 +02:00
|
|
|
+fi
|
2012-05-21 16:39:30 +02:00
|
|
|
+install -D ${pangobasicfc} $tmp_mnt/${pangobasicfc}
|
2012-04-28 09:01:46 +02:00
|
|
|
+mkdir -p $tmp_mnt/var/cache/fontconfig
|
2013-09-27 10:51:51 +02:00
|
|
|
Index: plymouth-0.8.8_git201309032142/scripts/plymouth-update-initrd
|
2012-06-21 16:20:37 +02:00
|
|
|
===================================================================
|
2013-09-27 10:51:51 +02:00
|
|
|
--- plymouth-0.8.8_git201309032142.orig/scripts/plymouth-update-initrd
|
|
|
|
+++ plymouth-0.8.8_git201309032142/scripts/plymouth-update-initrd
|
2012-05-15 11:10:11 +02:00
|
|
|
@@ -1,2 +1,2 @@
|
|
|
|
#!/bin/bash
|
2014-02-17 19:39:07 +01:00
|
|
|
-dracut -f
|
2012-07-06 09:50:28 +02:00
|
|
|
+/sbin/mkinitrd
|