summaryrefslogtreecommitdiff
path: root/pcr-testing/plymouth/plymouth.initcpio_install
diff options
context:
space:
mode:
authorFreemor <freemor@freemor.ca>2018-11-23 17:15:39 -0400
committerFreemor <freemor@freemor.ca>2018-11-23 17:15:39 -0400
commitff368b7f4dd180b8f9fa04fd1cb32726de98a0fd (patch)
treec1f38e5b183f1c6d9818b49bf646f66e5aa0eb01 /pcr-testing/plymouth/plymouth.initcpio_install
parentc0f527d18c9ef4d30bac6a91189284362ce5026c (diff)
downloadabslibre-ff368b7f4dd180b8f9fa04fd1cb32726de98a0fd.tar.gz
abslibre-ff368b7f4dd180b8f9fa04fd1cb32726de98a0fd.tar.bz2
abslibre-ff368b7f4dd180b8f9fa04fd1cb32726de98a0fd.zip
Updated [plymouth] to address #2067
- Added parabola-logo.png - Updated referrences to arch-logo.png to parabola-logo.png - v0.9.3 -> 0.9.4 - removed a patch that seemed not to be necessary any more.
Diffstat (limited to 'pcr-testing/plymouth/plymouth.initcpio_install')
-rw-r--r--pcr-testing/plymouth/plymouth.initcpio_install57
1 files changed, 57 insertions, 0 deletions
diff --git a/pcr-testing/plymouth/plymouth.initcpio_install b/pcr-testing/plymouth/plymouth.initcpio_install
new file mode 100644
index 000000000..c7bbc3dbc
--- /dev/null
+++ b/pcr-testing/plymouth/plymouth.initcpio_install
@@ -0,0 +1,57 @@
+build() {
+ add_dir /dev/pts
+ add_dir /usr/share/plymouth/themes
+ add_dir /var/run/plymouth
+
+ DATADIR="/usr/share"
+ PLYMOUTH_LOGO_FILE="${DATADIR}/plymouth/parabola-logo.png"
+ PLYMOUTH_THEME_NAME="$(/usr/bin/plymouth-set-default-theme)"
+ PLYMOUTH_MODULE_NAME="$(grep "ModuleName *= *" ${DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME}/${PLYMOUTH_THEME_NAME}.plymouth | sed 's/ModuleName *= *//')"
+ PLYMOUTH_PLUGIN_PATH="$(plymouth --get-splash-plugin-path)"
+
+ add_binary /usr/bin/plymouthd
+ add_binary /usr/bin/plymouth
+
+ add_file ${DATADIR}/plymouth/themes/text/text.plymouth
+ add_binary ${PLYMOUTH_PLUGIN_PATH}/text.so
+ add_file ${DATADIR}/plymouth/themes/details/details.plymouth
+ add_binary ${PLYMOUTH_PLUGIN_PATH}/details.so
+
+ add_file "${PLYMOUTH_LOGO_FILE}"
+ add_file /etc/os-release
+ add_file /etc/plymouth/plymouthd.conf
+ add_file ${DATADIR}/plymouth/plymouthd.defaults
+
+ if [ ! -f ${PLYMOUTH_PLUGIN_PATH}/${PLYMOUTH_MODULE_NAME}.so ]; then
+ echo "The default plymouth plugin (${PLYMOUTH_MODULE_NAME}) doesn't exist" > /dev/stderr
+ exit 1
+ fi
+
+ add_binary ${PLYMOUTH_PLUGIN_PATH}/${PLYMOUTH_MODULE_NAME}.so
+
+ add_binary ${PLYMOUTH_PLUGIN_PATH}/renderers/drm.so
+ add_binary ${PLYMOUTH_PLUGIN_PATH}/renderers/frame-buffer.so
+
+ if [ -d ${DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME} ]; then
+ add_full_dir ${DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME}
+ fi
+
+ add_file /usr/lib/udev/rules.d/70-uaccess.rules
+ add_file /usr/lib/udev/rules.d/71-seat.rules
+
+ # suppress a warning in glib (which the label control uses)
+ # about uid 0 by building a dummy NSS stack (LP #649917)
+ add_file /etc/passwd
+ add_file /etc/nsswitch.conf
+ add_binary "$(readlink -e /lib/libnss_files.so.2)"
+ add_file /lib/libnss_files.so.2
+
+ add_runscript
+}
+
+help() {
+ echo "This hook includes plymouth in the initramfs image."
+}
+
+# vim: set ft=sh:
+#EOF