Skip to content

Commit

Permalink
revert(systemd): trigger systemd-vconsole-setup.service only on demand
Browse files Browse the repository at this point in the history
Revert 6b09527.

Enable systemd-vconsole-setup.service always when it is avaiable
as it usually gets triggered by udev rules anyways.
  • Loading branch information
jozzsi authored and Conan-Kudo committed Aug 30, 2024
1 parent e1dfdac commit 238378a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
10 changes: 2 additions & 8 deletions modules.d/00systemd/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,14 +154,8 @@ EOF
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"
Expand Down
8 changes: 0 additions & 8 deletions modules.d/01systemd-ask-password/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ install() {
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

Expand All @@ -61,10 +57,6 @@ install() {
"$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

Expand Down

0 comments on commit 238378a

Please sign in to comment.