systemd: use systemd in the initramfs, if installed on the system

and systemd version is >= 198
master
Harald Hoyer 2013-07-31 13:30:49 +02:00
parent 9444bf6161
commit dc7085ceeb
2 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,8 @@
check() {
[[ $mount_needs ]] && return 1
if [[ -x $systemdutildir/systemd ]]; then
SYSTEMD_VERSION=$($systemdutildir/systemd --version | { read a b a; echo $b; })
(( $SYSTEMD_VERSION >= 198 )) && return 0
return 255
fi


View File

@ -8,7 +8,6 @@ check() {

depends() {
echo udev-rules
systemctl --system --no-pager &>/dev/null && echo systemd
return 0
}