if dracut_module_included "10i18n" && [[ -e "$systemdsystemunitdir"/systemd-vconsole-setup.service ]]; then
inst_multiple -o \
"$systemdutildir"/systemd-vconsole-setup \
- "$systemdsystemunitdir"/systemd-vconsole-setup.service
-
- for i in \
- emergency.target \
- rescue.target; do
- [[ -f "$systemdsystemunitdir"/$i ]] || continue
- $SYSTEMCTL -q --root "$initdir" add-wants "$i" systemd-vconsole-setup.service
- done
+ "$systemdsystemunitdir"/systemd-vconsole-setup.service \
+ "$systemdsystemunitdir"/sysinit.target.wants/systemd-vconsole-setup.service
fi
mkdir -p "$initdir/etc/systemd"
systemd-ask-password \
systemd-tty-ask-password-agent
- if [ -e "$systemdsystemunitdir"/systemd-vconsole-setup.service ]; then
- $SYSTEMCTL -q --root "$initdir" add-wants systemd-ask-password-console.service systemd-vconsole-setup.service
- fi
-
# Enable the systemd type service unit for systemd-ask-password.
$SYSTEMCTL -q --root "$initdir" enable systemd-ask-password-console.service
"$systemdsystemunitdir"/systemd-ask-password-plymouth.path \
"$systemdsystemunitdir"/systemd-ask-password-plymouth.service
- if [ -e "$systemdsystemunitdir"/systemd-vconsole-setup.service ]; then
- $SYSTEMCTL -q --root "$initdir" add-wants systemd-ask-password-plymouth.service systemd-vconsole-setup.service
- fi
-
$SYSTEMCTL -q --root "$initdir" enable systemd-ask-password-plymouth.service
fi