diff options
author | Lili1228 | 2023-03-29 21:53:20 +0200 |
---|---|---|
committer | Lili1228 | 2023-03-29 21:53:20 +0200 |
commit | 92e73c24cb5c24e8bd5dc94fbf9c294b9a90879b (patch) | |
tree | b32ee4def291c260af1661088bbe010af58c607c /plymouth.initcpio_hook | |
parent | 97a30ddada2ba5340c5eccc595b4f685bb86f701 (diff) | |
download | aur-plymouth-nosystemd.tar.gz |
Add missing files
Diffstat (limited to 'plymouth.initcpio_hook')
-rw-r--r-- | plymouth.initcpio_hook | 29 |
1 files changed, 11 insertions, 18 deletions
diff --git a/plymouth.initcpio_hook b/plymouth.initcpio_hook index 3d7ec1d17377..bdb9b6e7d626 100644 --- a/plymouth.initcpio_hook +++ b/plymouth.initcpio_hook @@ -1,23 +1,16 @@ -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 -} - +#!/usr/bin/ash + run_hook() { - /usr/bin/plymouth --show-splash + mkdir -m755 -p /dev/pts + mount -t devpts devpts /dev/pts -o nosuid,noexec,gid=5,mode=620 + plymouthd --mode=boot --pid-file=/run/plymouth/pid --attach-to-session + plymouth show-splash } - + run_latehook(){ - /usr/bin/plymouth update-root-fs --new-root-dir=/new_root + plymouth update-root-fs --new-root-dir=/new_root } -# vim: set ft=sh: +run_emergencyhook(){ + plymouth --wait quit +} |