-
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
35 additions
and
7 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
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ Provides: /sbin/chkconfig | |
%description | ||
Chkconfig is a basic system utility. It updates and queries runlevel | ||
information for system services. Chkconfig manipulates the numerous | ||
symbolic links in /etc/rc.d, to relieve system administrators of some | ||
symbolic links in /etc/rc.d, to relieve system administrators of some | ||
of the drudgery of manually editing the symbolic links. | ||
|
||
%package -n ntsysv | ||
|
@@ -95,11 +95,12 @@ mkdir -p $RPM_BUILD_ROOT/etc/chkconfig.d | |
%files -n alternatives | ||
%license COPYING | ||
%dir /etc/alternatives | ||
%ghost %dir %attr(755, root, root) /etc/alternatives.admindir | ||
%ghost %dir %attr(755, root, root) /var/lib/alternatives | ||
%{_sbindir}/update-alternatives | ||
%{_sbindir}/alternatives | ||
%{_mandir}/*/update-alternatives* | ||
%{_mandir}/*/alternatives* | ||
%dir /var/lib/alternatives | ||
|
||
%changelog | ||
* Tue Jul 30 2024 Jan Macku <[email protected]> - 1.29-1 | ||
|