FS#73702 - [systemd] initcpio script tries to include obsolete libnss_files lib
Attached to Project:
Arch Linux
Opened by Vladimir (_v_l) - Thursday, 10 February 2022, 00:11 GMT
Last edited by Christian Hesse (eworm) - Thursday, 10 February 2022, 07:13 GMT
Opened by Vladimir (_v_l) - Thursday, 10 February 2022, 00:11 GMT
Last edited by Christian Hesse (eworm) - Thursday, 10 February 2022, 07:13 GMT
|
Details
glibc in core (2.33-5) has following `libnss_files*` in
/usr/lib:
$ LANG=en_US.UTF-8 ls -lA /usr/lib/libnss_files* -rwxr-xr-x 1 root root 51376 May 13 2021 /usr/lib/libnss_files-2.33.so lrwxrwxrwx 1 root root 17 May 13 2021 /usr/lib/libnss_files.so -> libnss_files.so.2 lrwxrwxrwx 1 root root 20 May 13 2021 /usr/lib/libnss_files.so.2 -> libnss_files-2.33.so but glibc in testing (2.35) only the following: $ LANG=en_US.UTF-8 ls -lA /usr/lib/libnss_files* -rwxr-xr-x 1 root root 15192 Feb 10 01:29 /usr/lib/libnss_files.so.2 The missing 'libnss_files.so' leads to error when initramfs is generated by `mkinitcpio -p linux`. Workaround: manually create `libnss_files.so` link in `/usr/lib`. |
This task depends upon
Closed by Christian Hesse (eworm)
Thursday, 10 February 2022, 07:13 GMT
Reason for closing: Fixed
Additional comments about closing: systemd 250.3-4
Thursday, 10 February 2022, 07:13 GMT
Reason for closing: Fixed
Additional comments about closing: systemd 250.3-4
$ sudo mkinitcpio -p linux
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.16.8-arch1-2
-> Running build hook: [base]
-> Running build hook: [systemd]
==> ERROR: file not found: `/usr/lib/libnss_files.so'
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
-> Running build hook: [sd-vconsole]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 5.16.8-arch1-2
-> Running build hook: [base]
-> Running build hook: [systemd]
==> ERROR: file not found: `/usr/lib/libnss_files.so'
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: bfa
==> WARNING: Possibly missing firmware for module: qed
==> WARNING: Possibly missing firmware for module: qla1280
==> WARNING: Possibly missing firmware for module: qla2xxx
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: xhci_pci
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
-> Running build hook: [sd-vconsole]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
$ grep -v '^#'
MODULES=()
BINARIES=()
FILES=()
HOOKS=(base systemd autodetect modconf block filesystems keyboard fsck sd-vconsole)
COMPRESSION="xz"
May be this is not `glibc` fault, may be `systemd` should be rebuild vs new `glibc`?
https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=9ed48feed8c268e98baf00f3608d85dafb8215f3
https://sourceware.org/git/?p=glibc.git;a=commit;h=6212bb67f4695962748a5981e1b9fea105af74f6
This fixes static-only NSS support.
https://github.com/archlinux/svntogit-packages/blob/packages/systemd/trunk/initcpio-install-systemd#L124
On the other hand... That breaks current glibc. I guess we should keep compatibility for now.