This repository was archived by the owner on May 7, 2024. It is now read-only.
Commit ba5aac6
committed
scriptlet/01-alternatives.sh: add --quiet to --install operations
Whilst upgrading systemd, these warnings always gets printed:
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/systemctl because link group runlevel is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/systemctl because link group reboot is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/systemctl because link group shutdown is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/systemctl because link group poweroff is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/systemctl because link group halt is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/bin/systemctl because link group telinit is broken
update-alternatives: warning: forcing reinstallation of alternative /usr/lib/systemd/systemd because link group init is broken
However, the referenced files were always present, even after replacement.
Adding the --quiet flag to suppress these seemingly nonsensical warnings and,
since --quiet will still output errors when they occur (when the user should
actually be alerted), this flag should be fine being added on as default.
Ref: openSUSE does this repository-wide but for a different reason, but it
should prove that this hack is safe enough.
https://bugzilla.opensuse.org/show_bug.cgi?id=1172896#c31 parent 06e12d0 commit ba5aac6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments