From 61718e216a7b79c05c1b6dd5f073bec50b550b01 Mon Sep 17 00:00:00 2001 From: HuijingHei Date: Thu, 2 Nov 2023 21:53:43 +0800 Subject: [PATCH] postprocess: Remove `altfiles` in nsswitch.conf --- manifests/fedora-coreos-base.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/manifests/fedora-coreos-base.yaml b/manifests/fedora-coreos-base.yaml index 5c30bd9d10..705676782f 100644 --- a/manifests/fedora-coreos-base.yaml +++ b/manifests/fedora-coreos-base.yaml @@ -84,6 +84,14 @@ postprocess: ConditionPathExists= EOF + # Remove altfiles in nsswitch.conf when transfering to systemd-sysusers + # Current altfiles is added by https://src.fedoraproject.org/rpms/authselect/blob/rawhide/f/authselect.spec#_315 + # https://github.com/coreos/fedora-coreos-tracker/issues/155#issuecomment-1781289749 + - | + #!/usr/bin/env bash + set -xeuo pipefail + sed -i 's/altfiles //g' /etc/nsswitch.conf + # Packages listed here should be specific to Fedore CoreOS (as in not yet # available in RHCOS or not desired in RHCOS). All other packages should go # into one of the sub-manifests listed at the top.