diff options
author | David P <megver83@openmailbox.org> | 2017-03-21 13:52:27 -0300 |
---|---|---|
committer | David P <megver83@openmailbox.org> | 2017-03-21 13:52:27 -0300 |
commit | db1802bff1f9a0d62436bf0204f994a7e4845267 (patch) | |
tree | 03f178ef69979a242461e53652cc3e031dab4bd1 /pcr/plymouth/plymouth.initcpio_hook | |
parent | 9819a7bf5b2b669c648a67fcc0435ef6ffe4e180 (diff) | |
download | abslibre-db1802bff1f9a0d62436bf0204f994a7e4845267.tar.gz abslibre-db1802bff1f9a0d62436bf0204f994a7e4845267.tar.bz2 abslibre-db1802bff1f9a0d62436bf0204f994a7e4845267.zip |
Added plymouth to [pcr]
Diffstat (limited to 'pcr/plymouth/plymouth.initcpio_hook')
-rw-r--r-- | pcr/plymouth/plymouth.initcpio_hook | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pcr/plymouth/plymouth.initcpio_hook b/pcr/plymouth/plymouth.initcpio_hook new file mode 100644 index 000000000..3d7ec1d17 --- /dev/null +++ b/pcr/plymouth/plymouth.initcpio_hook @@ -0,0 +1,23 @@ +run_earlyhook(){ + # first trigger graphics subsystem + udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1 + # first trigger graphics and tty subsystem + udevadm trigger --action=add --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty >/dev/null 2>&1 + + udevadm settle --timeout=30 2>&1 + + /usr/bin/mknod /dev/fb c 29 &>/dev/null + /usr/bin/mkdir -p /dev/pts + /usr/bin/mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true + /usr/bin/plymouthd --mode=boot --pid-file=/run/plymouth/pid --attach-to-session +} + +run_hook() { + /usr/bin/plymouth --show-splash +} + +run_latehook(){ + /usr/bin/plymouth update-root-fs --new-root-dir=/new_root +} + +# vim: set ft=sh: |