systemd: use systemd in the initramfs, if installed on the system
and systemd version is >= 198master
parent
9444bf6161
commit
dc7085ceeb
|
@ -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
|
||||
|
||||
|
|
|
@ -8,7 +8,6 @@ check() {
|
|||
|
||||
depends() {
|
||||
echo udev-rules
|
||||
systemctl --system --no-pager &>/dev/null && echo systemd
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue