2 # /etc/initcpio/install/sd-plymouth — mkinitcpio/systemd hook for plymouth
6 add_dir /usr/share/plymouth/themes
10 PLYMOUTH_LOGO_FILE="${DATADIR}/plymouth/arch-logo.png"
11 PLYMOUTH_THEME_NAME="$(/usr/bin/plymouth-set-default-theme)"
12 PLYMOUTH_MODULE_NAME="$(grep "ModuleName *= *" ${DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME}/${PLYMOUTH_THEME_NAME}.plymouth | sed 's/ModuleName *= *//')"
13 PLYMOUTH_PLUGIN_PATH="$(plymouth --get-splash-plugin-path)"
15 add_binary /usr/bin/plymouthd
16 add_binary /usr/bin/plymouth
18 add_file ${DATADIR}/plymouth/themes/text/text.plymouth
19 add_binary ${PLYMOUTH_PLUGIN_PATH}/text.so
20 add_file ${DATADIR}/plymouth/themes/details/details.plymouth
21 add_binary ${PLYMOUTH_PLUGIN_PATH}/details.so
23 add_file "${PLYMOUTH_LOGO_FILE}"
24 add_file /etc/os-release
25 add_file /etc/plymouth/plymouthd.conf
26 add_file ${DATADIR}/plymouth/plymouthd.defaults
28 if [ ! -f ${PLYMOUTH_PLUGIN_PATH}/${PLYMOUTH_MODULE_NAME}.so ]; then
29 echo "The default plymouth plugin (${PLYMOUTH_MODULE_NAME}) doesn't exist" > /dev/stderr
33 add_binary ${PLYMOUTH_PLUGIN_PATH}/${PLYMOUTH_MODULE_NAME}.so
35 add_binary ${PLYMOUTH_PLUGIN_PATH}/renderers/drm.so
36 add_binary ${PLYMOUTH_PLUGIN_PATH}/renderers/frame-buffer.so
38 if [ -d ${DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME} ]; then
39 add_full_dir ${DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME}
42 add_udev_rule 70-uaccess.rules
43 add_udev_rule 71-seat.rules
45 map add_systemd_unit \
46 systemd-ask-password-plymouth.path \
47 systemd-ask-password-plymouth.service \
48 plymouth-halt.service \
49 plymouth-kexec.service \
50 plymouth-poweroff.service \
51 plymouth-quit-wait.service \
52 plymouth-quit.service \
53 plymouth-read-write.service \
54 plymouth-reboot.service \
55 plymouth-start.service \
56 plymouth-switch-root.service
61 This hook includes plymouth in a systemd-based initramfs image.