systemd: don't page failed user units
Otherwise, the pager (typically `less`) pauses execution of `home-manager switch` until the pager is dismissed, if the content is larger than would fit on the screen. PR #1175
This commit is contained in:
parent
ee1c40e5c5
commit
8369624512
|
@ -249,7 +249,7 @@ in
|
||||||
if [[ $systemdStatus == 'running' || $systemdStatus == 'degraded' ]]; then
|
if [[ $systemdStatus == 'running' || $systemdStatus == 'degraded' ]]; then
|
||||||
if [[ $systemdStatus == 'degraded' ]]; then
|
if [[ $systemdStatus == 'degraded' ]]; then
|
||||||
warnEcho "The user systemd session is degraded:"
|
warnEcho "The user systemd session is degraded:"
|
||||||
${systemctl} --user --state=failed
|
${systemctl} --user --no-pager --state=failed
|
||||||
warnEcho "Attempting to reload services anyway..."
|
warnEcho "Attempting to reload services anyway..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue