plymouth.initcpio_hook 791 B

123456789101112131415161718192021222324
  1. run_earlyhook(){
  2. # first trigger graphics subsystem
  3. udevadm trigger --action=add --attr-match=class=0x030000 >/dev/null 2>&1
  4. # first trigger graphics and tty subsystem
  5. udevadm trigger --action=add --subsystem-match=graphics --subsystem-match=drm --subsystem-match=tty >/dev/null 2>&1
  6. udevadm settle --timeout=30 2>&1
  7. /usr/bin/mknod /dev/fb c 29 &>/dev/null
  8. /usr/bin/mkdir -p /dev/pts
  9. /usr/bin/mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true
  10. /usr/bin/plymouthd --mode=boot --pid-file=/run/plymouth/pid --attach-to-session
  11. }
  12. run_hook() {
  13. /usr/bin/plymouth --show-splash
  14. }
  15. run_latehook(){
  16. /usr/bin/plymouth update-root-fs --new-root-dir=/new_root
  17. }
  18. # vim: set ft=sh: