summaryrefslogtreecommitdiff
path: root/pcr/plymouth/plymouth.initcpio_hook
diff options
context:
space:
mode:
authorDavid P <megver83@openmailbox.org>2017-03-22 11:10:24 -0300
committerDavid P <megver83@openmailbox.org>2017-03-22 11:10:24 -0300
commit8222e4f10d701a4a52c62f95de3573d1c904d249 (patch)
tree386b9a4a93d0502a0f4759c8296d1996490250a8 /pcr/plymouth/plymouth.initcpio_hook
parent62526bc1720fdacef644e905ba4a3bd2200e512f (diff)
downloadabslibre-8222e4f10d701a4a52c62f95de3573d1c904d249.tar.gz
abslibre-8222e4f10d701a4a52c62f95de3573d1c904d249.tar.bz2
abslibre-8222e4f10d701a4a52c62f95de3573d1c904d249.zip
Added plymouth
Diffstat (limited to 'pcr/plymouth/plymouth.initcpio_hook')
-rw-r--r--pcr/plymouth/plymouth.initcpio_hook23
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: