|
|
|
#!/bin/bash
|
|
|
|
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
|
|
|
# ex: ts=8 sw=4 sts=4 et filetype=sh
|
|
|
|
|
|
|
|
# called by dracut
|
|
|
|
check() {
|
|
|
|
[[ "$mount_needs" ]] && return 1
|
|
|
|
type -P plymouthd >/dev/null && type -P plymouth >/dev/null
|
|
|
|
}
|
|
|
|
|
|
|
|
# called by dracut
|
|
|
|
depends() {
|
|
|
|
echo drm
|
|
|
|
}
|
|
|
|
|
|
|
|
# called by dracut
|
|
|
|
install() {
|
|
|
|
if grep -q nash /usr/libexec/plymouth/plymouth-populate-initrd \
|
|
|
|
|| [ ! -x /usr/libexec/plymouth/plymouth-populate-initrd ]; then
|
|
|
|
. "$moddir"/plymouth-populate-initrd.sh
|
|
|
|
else
|
|
|
|
PLYMOUTH_POPULATE_SOURCE_FUNCTIONS="$dracutfunctions" \
|
|
|
|
/usr/libexec/plymouth/plymouth-populate-initrd -t "$initdir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
inst_hook emergency 50 "$moddir"/plymouth-emergency.sh
|
|
|
|
|
|
|
|
inst_multiple readlink
|
|
|
|
|
|
|
|
if ! dracut_module_included "systemd"; then
|
|
|
|
inst_hook pre-trigger 10 "$moddir"/plymouth-pretrigger.sh
|
|
|
|
inst_hook pre-pivot 90 "$moddir"/plymouth-newroot.sh
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|