From 43ac3d530784be56b22b8437865e3ad7a0fd200c Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Jan 13 2022 11:26:02 +0000 Subject: 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 --- diff --git a/authselect.spec b/authselect.spec index 6e74462..9fde6ba 100644 --- a/authselect.spec +++ b/authselect.spec @@ -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 - 1.3.0-6 +- Fix detection of ostree system (#2034360) + * Tue Dec 28 2021 Frantisek Zatloukal - 1.3.0-5 - Try to use io.open() in pre scriptlet instead of rpm.open() (rpm >= 4.17.0)