plymouth: do not install hooks in systemd mode

master
Harald Hoyer 2013-03-13 10:51:17 +01:00
parent b8060ef781
commit 7d17d6c976
1 changed files with 7 additions and 3 deletions

View File

@ -17,12 +17,16 @@ install() {
. "$moddir"/plymouth-populate-initrd.sh
else
PLYMOUTH_POPULATE_SOURCE_FUNCTIONS="$dracutfunctions" \
/usr/libexec/plymouth/plymouth-populate-initrd -t $initdir
/usr/libexec/plymouth/plymouth-populate-initrd -t "$initdir"
fi

inst_hook pre-pivot 90 "$moddir"/plymouth-newroot.sh
inst_hook pre-trigger 10 "$moddir"/plymouth-pretrigger.sh
inst_hook emergency 50 "$moddir"/plymouth-emergency.sh

dracut_install 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
}