From 64a523b563e3cd7bb2a640c23267f2cf91d3bacc Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Wed, 4 Dec 2013 12:04:47 -0600 Subject: plymouth, plymouth-theme-linhes: update and kill some bugs LinHES-config: change splash detection --- abs/core/LinHES-config/PKGBUILD | 4 +- abs/core/LinHES-config/install_functions.sh | 2 +- abs/core/plymouth-theme-linhes/PKGBUILD | 2 +- .../plymouth-theme-linhes/plymouth-linhes.install | 5 +- abs/core/plymouth/PKGBUILD | 149 ++++++++++++++------- abs/core/plymouth/__changelog | 4 +- abs/core/plymouth/arch-logo.png | Bin 11047 -> 46233 bytes abs/core/plymouth/encrypt_hook | 134 ++++++++++++++++++ abs/core/plymouth/encrypt_install | 49 +++++++ abs/core/plymouth/gdm-plymouth.service | 13 ++ abs/core/plymouth/kdm-plymouth.service | 13 ++ abs/core/plymouth/kdm-unpatched-plymouth.service | 15 +++ abs/core/plymouth/lightdm-plymouth.service | 14 ++ abs/core/plymouth/lxdm-plymouth.service | 13 ++ abs/core/plymouth/plymouth-encrypt.hook | 142 -------------------- abs/core/plymouth/plymouth-encrypt.install | 50 ------- abs/core/plymouth/plymouth-quit.service | 9 ++ .../plymouth/plymouth-set-default-theme.in.patch | 14 ++ abs/core/plymouth/plymouth-update-initrd.patch | 8 ++ abs/core/plymouth/plymouth.functions | 65 +++++++++ abs/core/plymouth/plymouth.hook | 4 - abs/core/plymouth/plymouth.initcpio_hook | 16 +++ abs/core/plymouth/plymouth.initcpio_install | 58 ++++++++ abs/core/plymouth/plymouth.install | 89 ++++++------ abs/core/plymouth/plymouthd.conf | 3 + abs/core/plymouth/slim-plymouth.service | 13 ++ abs/core/plymouth/system-release | 1 + 27 files changed, 594 insertions(+), 295 deletions(-) create mode 100644 abs/core/plymouth/encrypt_hook create mode 100644 abs/core/plymouth/encrypt_install create mode 100644 abs/core/plymouth/gdm-plymouth.service create mode 100644 abs/core/plymouth/kdm-plymouth.service create mode 100644 abs/core/plymouth/kdm-unpatched-plymouth.service create mode 100644 abs/core/plymouth/lightdm-plymouth.service create mode 100644 abs/core/plymouth/lxdm-plymouth.service delete mode 100644 abs/core/plymouth/plymouth-encrypt.hook delete mode 100644 abs/core/plymouth/plymouth-encrypt.install create mode 100644 abs/core/plymouth/plymouth-quit.service create mode 100644 abs/core/plymouth/plymouth-set-default-theme.in.patch create mode 100644 abs/core/plymouth/plymouth-update-initrd.patch create mode 100644 abs/core/plymouth/plymouth.functions delete mode 100644 abs/core/plymouth/plymouth.hook create mode 100644 abs/core/plymouth/plymouth.initcpio_hook create mode 100644 abs/core/plymouth/plymouth.initcpio_install create mode 100644 abs/core/plymouth/plymouthd.conf create mode 100644 abs/core/plymouth/slim-plymouth.service create mode 100644 abs/core/plymouth/system-release diff --git a/abs/core/LinHES-config/PKGBUILD b/abs/core/LinHES-config/PKGBUILD index f956642..99f2213 100755 --- a/abs/core/LinHES-config/PKGBUILD +++ b/abs/core/LinHES-config/PKGBUILD @@ -1,6 +1,6 @@ pkgname=LinHES-config pkgver=8.1 -pkgrel=5 +pkgrel=6 conflicts=(MythVantage-config MythVantage-config-dev LinHES-config-dev LinHes-config ) pkgdesc="Install and configure your system" depends=('bc' 'libstatgrab' 'mysql-python' 'expect' 'curl' 'dnsutils' 'parted' @@ -139,7 +139,7 @@ md5sums=('8ee14247b04ab4152d4919d4d4b8d869' '2596460462cf6c889cf8f95485537b20' '985891a43f7c4c983eb2a362162f1a0f' '261ba62515edd7a13d46cbeb1b0eadca' - '768504ef10ecd11a22875ccea9fcf62b' + '31106caee7f621e7c5f008ccd9600b36' 'f73d6d6f98839e900cb6685bf5dc4eae' 'b8becf69d4309b938ceba3178c799270' '2a7f3b34e522acfd08283b86c8926aba' diff --git a/abs/core/LinHES-config/install_functions.sh b/abs/core/LinHES-config/install_functions.sh index fd33e00..d841947 100755 --- a/abs/core/LinHES-config/install_functions.sh +++ b/abs/core/LinHES-config/install_functions.sh @@ -49,7 +49,7 @@ function parse_cmdline_2_db(){ function bootsplash_setup (){ - echo $CMDLINE | grep -q splash=silent + echo $CMDLINE | grep -q splash if [ $? -eq 0 ] then update_db_settings Hostbootsplash 1 diff --git a/abs/core/plymouth-theme-linhes/PKGBUILD b/abs/core/plymouth-theme-linhes/PKGBUILD index 4d1a8cf..da1cbc2 100644 --- a/abs/core/plymouth-theme-linhes/PKGBUILD +++ b/abs/core/plymouth-theme-linhes/PKGBUILD @@ -1,7 +1,7 @@ # pkgname="plymouth-theme-linhes-logo" pkgver=1 -pkgrel=2 +pkgrel=3 pkgdesc="LinHES theme for plymouth" arch=('any') license=('GPL') diff --git a/abs/core/plymouth-theme-linhes/plymouth-linhes.install b/abs/core/plymouth-theme-linhes/plymouth-linhes.install index 62d2781..7347d87 100644 --- a/abs/core/plymouth-theme-linhes/plymouth-linhes.install +++ b/abs/core/plymouth-theme-linhes/plymouth-linhes.install @@ -1,9 +1,10 @@ post_install(){ - /usr/sbin/plymouth-set-default-theme linhes-logo + /usr/bin/plymouth-set-default-theme linhes-logo + mkinitcpio -p linux } post_upgrade(){ - mkinitcpio -p linux + post_install } op=$1 shift diff --git a/abs/core/plymouth/PKGBUILD b/abs/core/plymouth/PKGBUILD index a9d1bde..d0849c7 100644 --- a/abs/core/plymouth/PKGBUILD +++ b/abs/core/plymouth/PKGBUILD @@ -1,73 +1,118 @@ pkgname=plymouth pkgver=0.8.8.52.g37d2e40 pkgrel=1 -pkgdesc="A graphical boot splash screen with kernel mode-setting support (Git verson for now)" +pkgdesc="A graphical boot splash screen with kernel mode-setting support (Git version)" url="http://cgit.freedesktop.org/cgit/plymouth/" - arch=('i686' 'x86_64') license=('GPL') - -depends=('libdrm' 'pango') +depends=('libdrm' 'pango' 'v86d') makedepends=('git' 'docbook-xsl') optdepends=('ttf-dejavu') -backup=('etc/plymouth/plymouthd.conf') -options=('!emptydirs') -conflicts=('plymouth-git') +options=('!libtool' '!emptydirs') +install=$pkgname.install -source=( -'git://anongit.freedesktop.org/plymouth' -'plymouth.hook' -'plymouth.install' -'plymouth-encrypt.hook' -'plymouth-encrypt.install' -'arch-logo.png' -) +provides=('plymouth') +conflicts=('plymouth') +backup=('etc/plymouth/plymouthd.conf') -md5sums=( -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -) +source=('git://anongit.freedesktop.org/plymouth' + 'arch-logo.png' + 'encrypt_hook' + 'encrypt_install' + 'gdm-plymouth.service' + 'kdm-plymouth.service' + 'kdm-unpatched-plymouth.service' + 'lxdm-plymouth.service' + 'lightdm-plymouth.service' + 'slim-plymouth.service' + 'plymouth.functions' + "$pkgname.install" + 'plymouth.initcpio_hook' + 'plymouth.initcpio_install' + 'plymouth-quit.service' + 'plymouth-set-default-theme.in.patch' + 'plymouth-update-initrd.patch' + 'plymouthd.conf' + 'system-release') + pkgver() { - cd "$srcdir"/plymouth - git describe --always | sed 's/-/./g' + cd "$srcdir"/${pkgname%%-*} + git describe --always | sed 's/-/./g' +} + +prepare() { + cd "$srcdir"/${pkgname%%-*} + + patch -Np0 -i ../plymouth-set-default-theme.in.patch + patch -Np0 -i ../plymouth-update-initrd.patch + + sed -e 's:png_set_gray_1_2_4_to_8:png_set_expand_gray_1_2_4_to_8:g' \ + -i src/libply-splash-graphics/ply-image.c + + test -f Makefile && make distclean + + return 0 } build() { - cd "$srcdir"/plymouth - ./autogen.sh --prefix=/usr \ - --exec-prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --libdir=/usr/lib \ - --libexecdir=/usr/lib \ - --sbindir=/usr/bin \ - --enable-drm-renderer \ - --enable-pango \ - --with-logo=/usr/share/plymouth/arch-logo.png \ - --with-boot-tty=/dev/tty7 \ - --with-shutdown-tty=/dev/tty7 \ - --without-system-root-install - make + cd "$srcdir"/${pkgname%%-*} + + ./autogen.sh --prefix=/usr \ + --exec-prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib \ + --sbindir=/usr/bin \ + --enable-drm-renderer \ + --enable-tracing \ + --enable-pango \ + --with-gdm-autostart-file=yes \ + --with-logo=/usr/share/plymouth/arch-logo.png \ + --with-background-start-color-stop=0x000000 \ + --with-background-end-color-stop=0x4D4D4D \ + --without-rhgb-compat-link \ + --without-system-root-install + + make } package() { - cd "$srcdir"/plymouth - make DESTDIR="$pkgdir" install + cd "$srcdir"/${pkgname%%-*} - # logo - install -Dm644 "$srcdir"/arch-logo.png "$pkgdir/usr/share/plymouth/arch-logo.png" + make DESTDIR="$pkgdir" install - # remove non-arch script - rm "$pkgdir/usr/lib/plymouth/"*-initrd - rm "$pkgdir/usr/bin/plymouth-set-default-theme" + install -Dm644 "$srcdir/arch-logo.png" "$pkgdir/usr/share/plymouth/arch-logo.png" + install -Dm644 "$srcdir/encrypt_hook" "$pkgdir/usr/lib/initcpio/hooks/plymouth-encrypt" + install -Dm644 "$srcdir/encrypt_install" "$pkgdir/usr/lib/initcpio/install/plymouth-encrypt" + install -Dm644 "$srcdir/plymouth.functions" "$pkgdir/etc/rc.d/functions.d/plymouth.functions" + install -Dm644 "$srcdir/plymouth.initcpio_hook" "$pkgdir/usr/lib/initcpio/hooks/plymouth" + install -Dm644 "$srcdir/plymouth.initcpio_install" "$pkgdir/usr/lib/initcpio/install/plymouth" + install -Dm644 "$srcdir/plymouthd.conf" "$pkgdir/etc/plymouth/plymouthd.conf" + install -Dm644 "$srcdir/system-release" "$pkgdir/etc/system-release" - # initcpio - install -Dm644 "$srcdir/plymouth.hook" "$pkgdir/usr/lib/initcpio/hooks/plymouth" - install -Dm644 "$srcdir/plymouth.install" "$pkgdir/usr/lib/initcpio/install/plymouth" - install -Dm644 "$srcdir/plymouth-encrypt.hook" "$pkgdir/usr/lib/initcpio/hooks/plymouth-encrypt" - install -Dm644 "$srcdir/plymouth-encrypt.install" "$pkgdir/usr/lib/initcpio/install/plymouth-encrypt" + # Plymouth<->systemd integration, including units for DMs + for i in {{gdm,kdm{,-unpatched},lxdm,slim,lightdm}-plymouth,plymouth-quit}.service; do + install -Dm644 "$srcdir/$i" "$pkgdir/usr/lib/systemd/system/$i" + done + } +md5sums=('SKIP' + '65fa2763d5c9bb9f80973ea5e6e3db3e' + '79613b70a0a0be4c33978ef37c30f00a' + '65eb269910f1b81e3f0970af456394ca' + '34d0ed7bbcb3d0ea498de24bc17b2ee9' + '75ec0ac73eb9a1e3f6104df64520d431' + 'ceec65ce58accdb270f3eaa23d794b4a' + '62c3b4e894330a2ca4c2b8fbcaba083c' + 'e6d573b1913f3aa020cbde3863ee80f0' + '225b953976e1c824f62ba406a63c18c7' + 'f0110fba1e77cd22c32d1727399d0b8a' + '95e987cfbc2d30a2cea215394eb9ac20' + '4f3be343eea9956bbc94d615d5f41def' + '7f21ba9a85733ff945c23012cff55a89' + '3bb0b8008edfad9e23703674341766a0' + '42fddd683720dbacbe6e30b4b7892f3c' + '412a1a89ca960370071746b0af8c0ac5' + '37479b134827dc307b3c55bfb2711e99' + 'ab8a557d10f74bec5c94ed6cae34729c') diff --git a/abs/core/plymouth/__changelog b/abs/core/plymouth/__changelog index 21edf18..6b8e8c1 100644 --- a/abs/core/plymouth/__changelog +++ b/abs/core/plymouth/__changelog @@ -1,2 +1,4 @@ +pulled from AUR plymouth-git 12/3/13 removed systemd as a dep - +removed --enable-systemd configure option +add v86d as dep diff --git a/abs/core/plymouth/arch-logo.png b/abs/core/plymouth/arch-logo.png index e5f4055..9f8446b 100644 Binary files a/abs/core/plymouth/arch-logo.png and b/abs/core/plymouth/arch-logo.png differ diff --git a/abs/core/plymouth/encrypt_hook b/abs/core/plymouth/encrypt_hook new file mode 100644 index 0000000..a3dcda1 --- /dev/null +++ b/abs/core/plymouth/encrypt_hook @@ -0,0 +1,134 @@ +#!/bin/bash + +run_hook() { + modprobe -a -q dm-crypt >/dev/null 2>&1 + [ "${quiet}" = "y" ] && CSQUIET=">/dev/null" + + # Get keyfile if specified + ckeyfile="/crypto_keyfile.bin" + if [ -n "$cryptkey" ]; then + IFS=: read ckdev ckarg1 ckarg2 </dev/null 2>&1 + umount /ckey + ;; + *) + # Read raw data from the block device + # ckarg1 is numeric: ckarg1=offset, ckarg2=length + dd if="$resolved" of="$ckeyfile" bs=1 skip="$ckarg1" count="$ckarg2" >/dev/null 2>&1 + ;; + esac + fi + [ ! -f ${ckeyfile} ] && echo "Keyfile could not be opened. Reverting to passphrase." + fi + + if [ -n "${cryptdevice}" ]; then + DEPRECATED_CRYPT=0 + IFS=: read cryptdev cryptname cryptoptions <&2 + ;; + esac + done + + if resolved=$(resolve_device "${cryptdev}" ${rootdelay}); then + if cryptsetup isLuks ${resolved} >/dev/null 2>&1; then + [ ${DEPRECATED_CRYPT} -eq 1 ] && warn_deprecated + dopassphrase=1 + # If keyfile exists, try to use that + if [ -f ${ckeyfile} ]; then + if eval cryptsetup --key-file ${ckeyfile} luksOpen ${resolved} ${cryptname} ${cryptargs} ${CSQUIET}; then + dopassphrase=0 + else + echo "Invalid keyfile. Reverting to passphrase." + fi + fi + # Ask for a passphrase + if [ ${dopassphrase} -gt 0 ]; then + echo + echo "A password is required to access the ${cryptname} volume:" + plymouth ask-for-password --prompt="Password for ${cryptname} volume" --dont-pause-progress --number-of-tries=5 --command="/sbin/cryptsetup luksOpen --key-file=- ${cryptdev} ${cryptname} ${CSQUIET}" + sleep 2 + fi + if [ -e "/dev/mapper/${cryptname}" ]; then + if [ ${DEPRECATED_CRYPT} -eq 1 ]; then + export root="/dev/mapper/root" + fi + else + err "Password succeeded, but ${cryptname} creation failed, aborting..." + exit 1 + fi + elif [ -n "${crypto}" ]; then + [ ${DEPRECATED_CRYPT} -eq 1 ] && warn_deprecated + msg "Non-LUKS encrypted device found..." + if echo "$crypto" | awk -F: '{ exit(NF == 5) }'; then + err "Verify parameter format: crypto=hash:cipher:keysize:offset:skip" + err "Non-LUKS decryption not attempted..." + return 1 + fi + exe="cryptsetup create $cryptname $resolved $cryptargs" + IFS=: read c_hash c_cipher c_keysize c_offset c_skip </dev/null 2>&1 /dev/null 2>&1 - [ "${quiet}" = "y" ] && CSQUIET=">/dev/null" - - # Get keyfile if specified - ckeyfile="/crypto_keyfile.bin" - if [ -n "$cryptkey" ]; then - IFS=: read ckdev ckarg1 ckarg2 </dev/null 2>&1 - umount /ckey - ;; - *) - # Read raw data from the block device - # ckarg1 is numeric: ckarg1=offset, ckarg2=length - dd if="$resolved" of="$ckeyfile" bs=1 skip="$ckarg1" count="$ckarg2" >/dev/null 2>&1 - ;; - esac - fi - [ ! -f ${ckeyfile} ] && echo "Keyfile could not be opened. Reverting to passphrase." - fi - - if [ -n "${cryptdevice}" ]; then - DEPRECATED_CRYPT=0 - IFS=: read cryptdev cryptname cryptoptions <&2 - ;; - esac - done - - if resolved=$(resolve_device "${cryptdev}" ${rootdelay}); then - if cryptsetup isLuks ${resolved} >/dev/null 2>&1; then - [ ${DEPRECATED_CRYPT} -eq 1 ] && warn_deprecated - dopassphrase=1 - # If keyfile exists, try to use that - if [ -f ${ckeyfile} ]; then - if eval cryptsetup --key-file ${ckeyfile} open --type luks ${resolved} ${cryptname} ${cryptargs} ${CSQUIET}; then - dopassphrase=0 - else - echo "Invalid keyfile. Reverting to passphrase." - fi - fi - # Ask for a passphrase - if [ ${dopassphrase} -gt 0 ]; then - echo "" - echo "A password is required to access the ${cryptname} volume:" - -### - plymouth ask-for-password \ - --prompt="Password for ${cryptname} volume" \ - --dont-pause-progress \ - --number-of-tries=3 \ - --command="cryptsetup open --type luks ${resolved} ${cryptname} ${cryptargs} ${CSQUIET}" -### - fi - if [ -e "/dev/mapper/${cryptname}" ]; then - if [ ${DEPRECATED_CRYPT} -eq 1 ]; then - export root="/dev/mapper/root" - fi - else - err "Password succeeded, but ${cryptname} creation failed, aborting..." - exit 1 - fi - elif [ -n "${crypto}" ]; then - [ ${DEPRECATED_CRYPT} -eq 1 ] && warn_deprecated - msg "Non-LUKS encrypted device found..." - if echo "$crypto" | awk -F: '{ exit(NF == 5) }'; then - err "Verify parameter format: crypto=hash:cipher:keysize:offset:skip" - err "Non-LUKS decryption not attempted..." - return 1 - fi - exe="cryptsetup open --type plain $resolved $cryptname $cryptargs" - IFS=: read c_hash c_cipher c_keysize c_offset c_skip < /dev/stderr + exit 1 + fi diff --git a/abs/core/plymouth/plymouth-update-initrd.patch b/abs/core/plymouth/plymouth-update-initrd.patch new file mode 100644 index 0000000..c307199 --- /dev/null +++ b/abs/core/plymouth/plymouth-update-initrd.patch @@ -0,0 +1,8 @@ +--- scripts/plymouth-update-initrd.old 2013-10-27 17:02:15.200368142 +0900 ++++ scripts/plymouth-update-initrd 2013-10-27 17:02:57.686768138 +0900 +@@ -1,2 +1,4 @@ +#!/bin/bash +-dracut -f /boot/initramfs-$(uname -r).img $(uname -r) ++find /etc/mkinitcpio.d/ -name \*.preset -a \! -name example.preset | while read p; do ++ mkinitcpio -p $p ++done diff --git a/abs/core/plymouth/plymouth.functions b/abs/core/plymouth/plymouth.functions new file mode 100644 index 0000000..b866643 --- /dev/null +++ b/abs/core/plymouth/plymouth.functions @@ -0,0 +1,65 @@ +if [[ -x /usr/bin/plymouth && -x /usr/sbin/plymouthd ]]; then + + ply_client() { /usr/bin/plymouth --ping && /usr/bin/plymouth "$@"; } + ply_daemon() { /usr/sbin/plymouthd "$@"; } + + # save a function under a new name + save_function() { + local ORIG=$(declare -f $1) + eval "$2${ORIG#$1}" + } + + save_function stat_busy std_stat_busy + save_function stat_fail std_stat_fail + + # overwrite status functions + stat_busy() { + ply_client --update="$1" + ply_client message --text="$1" + std_stat_busy "$@" + } + + stat_fail() { + ply_client --quit + std_stat_fail "$@" + } + + # update after local filesystems are mounted + ply_sysinit_postmount() { ply_client --sysinit; } + add_hook sysinit_postmount ply_sysinit_postmount + + # stop plymouth after rc.multi + ply_quit_boot() { + ply_client quit --retain-splash + } + add_hook multi_end ply_quit_boot + + # stop plymouth before shutdown + ply_quit_shutdown() { + ply_quit_boot + [[ $(ps h $(cat /tmp/plymouthd)) ]] && kill -9 $(cat /tmp/plymouthd) + } + add_hook shutdown_poweroff ply_quit_shutdown + + # start plymouth at the beginning of rc.shutdown + ply_shutdown_start(){ + XPID=`pidof X` + if [ "$XPID" ]; then + if [ "`runlevel | cut -c 3`" != '5' ]; then + local DM + for DM in slim gdm kdm xdm entrance; do + ck_daemon "$DM" || stop_daemon "$DM" + done + fi + kill -9 $XPID &> /dev/null + fi + ply_daemon --mode=shutdown --pid-file=/tmp/plymouthd + ply_client --show-splash + + # don't get killed by kill_all + add_omit_pids `cat /tmp/plymouthd` + } + add_hook shutdown_start ply_shutdown_start + +fi +# vim: set ts=2 sw=2 ft=sh noet: diff --git a/abs/core/plymouth/plymouth.hook b/abs/core/plymouth/plymouth.hook deleted file mode 100644 index 36a5e1b..0000000 --- a/abs/core/plymouth/plymouth.hook +++ /dev/null @@ -1,4 +0,0 @@ -run_hook() { - /usr/bin/plymouthd --mode=boot - /usr/bin/plymouth --show-splash -} diff --git a/abs/core/plymouth/plymouth.initcpio_hook b/abs/core/plymouth/plymouth.initcpio_hook new file mode 100644 index 0000000..d527f24 --- /dev/null +++ b/abs/core/plymouth/plymouth.initcpio_hook @@ -0,0 +1,16 @@ +run_hook() { + msg -n ":: Loading plymouth..." + + /bin/mknod /dev/fb c 29 0 &>/dev/null + #/bin/mount devpts /dev/pts -t devpts + + # plymouth deamon + #/bin/mkdir -p /run/plymouth + /usr/sbin/plymouthd --mode=boot --pid-file=/run/plymouth.pid + + # plymouth frontend + /usr/bin/plymouth --show-splash + msg "done." +} + +# vim: set ft=sh: diff --git a/abs/core/plymouth/plymouth.initcpio_install b/abs/core/plymouth/plymouth.initcpio_install new file mode 100644 index 0000000..22cc298 --- /dev/null +++ b/abs/core/plymouth/plymouth.initcpio_install @@ -0,0 +1,58 @@ +build() { + add_dir /dev/pts + add_dir /usr/share/plymouth/themes + + DATADIR="/usr/share" + PLYMOUTH_LOGO_FILE="${DATADIR}/plymouth/arch-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/system-release /etc/system-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/x11.so + add_binary ${PLYMOUTH_PLUGIN_PATH}/renderers/frame-buffer.so + + if [ -d ${DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME} ]; then + for x in ${DATADIR}/plymouth/themes/${PLYMOUTH_THEME_NAME}/* ; do + [ ! -f "$x" ] && break + add_file $x + done + fi + + # 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 diff --git a/abs/core/plymouth/plymouth.install b/abs/core/plymouth/plymouth.install index 9194805..99aa7ee 100644 --- a/abs/core/plymouth/plymouth.install +++ b/abs/core/plymouth/plymouth.install @@ -1,43 +1,52 @@ -build() { - theme="$(get_theme "/etc/plymouth/plymouthd.conf")" - if [[ "$theme" ]]; then - add_file /etc/plymouth/plymouthd.conf - else - # fallback - theme="$(get_theme "/usr/share/plymouth/plymouthd.defaults")" - if [[ ! "$theme" ]]; then - echo "no theme set for plymouth" - exit 1 - fi - add_file /usr/share/plymouth/plymouthd.defaults - fi - - if [[ ! -d "/usr/share/plymouth/themes/$theme" ]]; then - echo "invalid plymouth theme: $theme" - exit 1 - fi - - module="$(get_module "$theme")" - add_file /usr/share/plymouth/arch-logo.png - - add_binary /usr/bin/plymouthd - add_binary /usr/bin/plymouth - - add_binary /usr/lib/plymouth/renderers/drm.so - add_binary /usr/lib/plymouth/renderers/frame-buffer.so - - add_binary /usr/lib/plymouth/$module.so - add_full_dir /usr/share/plymouth/themes/$theme - - add_runscript +post_install() { +cat < + +=========== + +4. For Smooth Transition to Display Manager you have to: + 4.1. See the Wiki Page (link in 5) to prepare your Display Manager + 4.2. Disable your Display Manager Unit + E.g. : # systemctl disable kdm.service + 4.3. Enable the respective DM-plymouth Unit (GDM, KDM, LXDM units provided) + E.g. : # systemctl enable kdm-plymouth.service + +=========== + +5. For more information please visit the Wiki page: + https://wiki.archlinux.org/index.php/Plymouth + +=========== + +OBS. If you have any leftover "kill Plymouth" lines in /etc/rc.local or +~/.xinitrc they are no longer required. + +EOF } -# $1 = file -get_theme() { - grep ^Theme= "$1" | cut -d = -f 2- -} - -# $1 = theme -get_module() { - grep ^ModuleName= "/usr/share/plymouth/themes/$1/$1.plymouth" | cut -d = -f 2- +post_upgrade() { + post_install } diff --git a/abs/core/plymouth/plymouthd.conf b/abs/core/plymouth/plymouthd.conf new file mode 100644 index 0000000..50de7f8 --- /dev/null +++ b/abs/core/plymouth/plymouthd.conf @@ -0,0 +1,3 @@ +# Administrator customizations go in this file +[Daemon] +Theme=spinfinity diff --git a/abs/core/plymouth/slim-plymouth.service b/abs/core/plymouth/slim-plymouth.service new file mode 100644 index 0000000..8806c7d --- /dev/null +++ b/abs/core/plymouth/slim-plymouth.service @@ -0,0 +1,13 @@ +[Unit] +Description=SLiM Simple Login Manager +After=systemd-user-sessions.service + +Conflicts=plymouth-quit.service +After=plymouth-quit.service + +[Service] +ExecStart=/usr/bin/slim -nodaemon +StandardOutput=syslog + +[Install] +Alias=display-manager.service diff --git a/abs/core/plymouth/system-release b/abs/core/plymouth/system-release new file mode 100644 index 0000000..850183e --- /dev/null +++ b/abs/core/plymouth/system-release @@ -0,0 +1 @@ +Arch Linux -- cgit v0.12