authselect-1.3.0-6: fix detection of ostree system
The information in /etc/os-release may not be available if the system has not yet been mutated into ostree. This may happen during initial compose. Resolves: rhbz#2034360
This commit is contained in:
parent
e597fee629
commit
43ac3d5307
@ -3,7 +3,7 @@
|
||||
|
||||
Name: authselect
|
||||
Version: 1.3.0
|
||||
Release: 5%{?dist}
|
||||
Release: 6%{?dist}
|
||||
Summary: Configures authentication and identity sources from supported profiles
|
||||
URL: https://github.com/authselect/authselect
|
||||
|
||||
@ -323,7 +323,7 @@ fi
|
||||
|
||||
# Keep nss-altfiles for all rpm-ostree based systems.
|
||||
# See https://github.com/authselect/authselect/issues/48
|
||||
if %__grep "OSTREE_VERSION=" /etc/os-release &> /dev/null; then
|
||||
if test -e /run/ostree-booted; then
|
||||
for PROFILE in `ls %{_datadir}/authselect/default`; do
|
||||
%{_bindir}/authselect create-profile $PROFILE --vendor --base-on $PROFILE --symlink-pam --symlink-dconf --symlink=REQUIREMENTS --symlink=README &> /dev/null
|
||||
%if %{with_user_nsswitch}
|
||||
@ -347,6 +347,9 @@ fi
|
||||
exit 0
|
||||
|
||||
%changelog
|
||||
* Thu Jan 13 2022 Pavel Březina <pbrezina@redhat.com> - 1.3.0-6
|
||||
- Fix detection of ostree system (#2034360)
|
||||
|
||||
* Tue Dec 28 2021 Frantisek Zatloukal <fzatlouk@redhat.com> - 1.3.0-5
|
||||
- Try to use io.open() in pre scriptlet instead of rpm.open() (rpm >= 4.17.0)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user