coreos/rpm-ostree

This is no `altfiles` in nsswitch.conf after using `rpm-ostree override replace glibc` to update glibc

Opened this issue · 0 comments

Describe the bug

I have a question about nsswitch.conf. When an os doesn't have authselect and authselect-libs packages, the nsswitch.conf comes from glibc. When I create the os with coreos-assembler, the nsswitch.conf has altfiles option, eg.

image

However, after I using rpm-ostree override replace glibc --from repo='xxx' && rpm-ostree ex apply-live --allow-replacement command to update glibc. Then there is a problem when running systemd-tmpfiles:

image

And, from the new deployments, I found that nsswitch.conf donesn't have altfiles option. So I want to know is it reasonable?

image

Reproduction steps

  1. Creating an os without authselect and authselect-libs
  2. using the following command to update glibc:
    rpm-ostree override replace glibc --from repo='xxx' rpm-ostree ex apply-live --allow-replacement

Expected behavior

After updating glibc, the nsswitch.conf should have altfiles option.

Actual behavior

The nsswitch.conf donesn't have altfiles option.

System details

# rpm-ostree --version
rpm-ostree:
 Version: '2022.10'
 Git: 2db7d62389625331a139607f05f2928cef7d2c3b
 Features:
  - rust
  - compose
  - container
  - rhsm

Additional information

No response