Skip to content

Commit

Permalink
[email protected]: do not exit as error when preventing restart
Browse files Browse the repository at this point in the history
  • Loading branch information
valentindavid committed Jan 20, 2025
1 parent a75099e commit 59a2f05
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/console-conf-check-error
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -eu

if [ "${SERVICE_RESULT}" == "exit-code" ] && [ "${EXIT_STATUS}" -eq 22 ]; then
if [ "${SERVICE_RESULT}" == "success" ] && [ "${EXIT_STATUS}" -eq 22 ]; then
systemctl start --no-block "${1}"
fi
1 change: 1 addition & 0 deletions debian/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Conflicts=getty@%i.service
Environment=PYTHONPATH=/usr/share/subiquity
ExecStart=/sbin/agetty -i -n --noclear -l /usr/share/subiquity/console-conf-wrapper %I $TERM
RestartPreventExitStatus=22
SuccessExitStatus=22
ExecStopPost=/usr/share/subiquity/console-conf-check-error getty@%i.service
Type=idle
OnFailure=getty@%i.service
Expand Down
1 change: 1 addition & 0 deletions debian/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Conflicts=serial-getty@%i.service
Environment=PYTHONPATH=/usr/share/subiquity
ExecStart=/sbin/agetty -i -n --keep-baud -l /usr/share/subiquity/console-conf-wrapper --login-options "--serial" 115200,38400,9600 %I $TERM
RestartPreventExitStatus=22
SuccessExitStatus=22
ExecStopPost=/usr/share/subiquity/console-conf-check-error serial-getty@%i.service
Type=idle
Restart=always
Expand Down

0 comments on commit 59a2f05

Please sign in to comment.