-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ostree: move admindir to /etc/alternatives.admindir
`ostree container commit` wipes /var and thereby erases the data in /var/lib/alternatives; the directory used to store configs/symlinks of alternatives. /var is not a good place for storing such configs since it won't receive updates on bootc images either. We need to move to another location. Hence, use /etc/alternatives.admindir when running on an ostree-based system unless /var/lib/alternatives is already present; a user may have worked around the problem. This way we enable alternatives to work on ostree-based systems without breaking backwards compat. Fixes: #9 Signed-off-by: Valentin Rothberg <[email protected]>
- Loading branch information
Showing
4 changed files
with
88 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,9 +81,7 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d | |
%{_sysconfdir}/chkconfig.d | ||
%{_sysconfdir}/init.d | ||
%{_sysconfdir}/rc.d | ||
%{_sysconfdir}/rc.d/init.d | ||
%{_sysconfdir}/rc[0-6].d | ||
%{_sysconfdir}/rc.d/rc[0-6].d | ||
%{_mandir}/*/chkconfig* | ||
%{_prefix}/lib/systemd/systemd-sysv-install | ||
|
||
|
@@ -95,11 +93,12 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d | |
%files -n alternatives | ||
%license COPYING | ||
%dir /etc/alternatives | ||
%dir /etc/alternatives.admindir | ||
%ghost /var/lib/alternatives | ||
%{_sbindir}/update-alternatives | ||
%{_sbindir}/alternatives | ||
%{_mandir}/*/update-alternatives* | ||
%{_mandir}/*/alternatives* | ||
%dir /var/lib/alternatives | ||
|
||
%changelog | ||
* Fri Jun 21 2024 Jan Macku <[email protected]> - 1.28-1 | ||
|
Oops, something went wrong.