systemd: musl ld loader wiped on upgrade
@calebccff did an apk upgrade -a
on an existing install using the systemd master branch, and somehow the ld loader was deleted from the rootfs. This is bad. It might be due to apk-tools' /usr merge patches, but needs more debug
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- Administrator changed milestone to %initial systemd support · Imported
changed milestone to %initial systemd support
- Administrator mentioned in merge request !5563 (merged) · Imported
mentioned in merge request !5563 (merged)
By clayton craft on 2024-09-25T20:23:05
- Author Owner
Seems like other libraries were likely nuked as well. will post-mortem and try to reproduce. This is surely a bug in apk-tools with /usr merge hacks.
By Caleb Connolly on 2024-09-25T21:37:42
- Author Owner
I was able to reproduce this in a chroot by doing:
- check out
master_staging_systemd
branch pmbootstrap -y zap -a && pmbootstrap chroot -r
pmbootstrap aportgen --fork-alpine musl
- bump pkgrel in
tmp/musl/APKBUILD
to something (doesn't matter) pmbootstrap build --force musl
pmbootstrap chroot -r apk upgrade -aiU
full output
/ # apk upgrade -aiU fetch http://mirror.postmarketos.org/postmarketos/staging/systemd/master/aarch64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/aarch64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/aarch64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/edge/testing/aarch64/APKINDEX.tar.gz The following packages will be upgraded: fribidi kmod kmod-libs libeditorconfig musl musl-utils py3-cairo py3-cairo-pyc Need to download 248 KiB of packages. After this operation, 4096 B of additional disk space will be used. Do you want to continue [Y/n]? y (1/8) Upgrading musl (1.2.5-r3 -> 1.2.5-r999) musl-1.2.5-r999: [USRMERGE] Rewrite lib/ to usr/lib/ musl-1.2.5-r999: [USRMERGE] Rewrite lib/ld-musl-aarch64.so.1 to usr/lib/ld-musl-aarch64.so.1 musl-1.2.5-r999: [USRMERGE] Rewrite lib/libc.musl-aarch64.so.1 to usr/lib/libc.musl-aarch64.so.1 (2/8) Upgrading musl-utils (1.2.5-r3 -> 1.2.5-r999) musl-utils-1.2.5-r999: [USRMERGE] Rewrite sbin/ to usr/bin/ musl-utils-1.2.5-r999: [USRMERGE] Rewrite sbin/ldconfig to usr/bin/ldconfig (3/8) Upgrading kmod (33-r1 -> 33-r2) kmod-33-r2: [USRMERGE] Rewrite bin/ to usr/bin/ kmod-33-r2: [USRMERGE] Rewrite bin/depmod to usr/bin/depmod kmod-33-r2: [USRMERGE] Rewrite bin/insmod to usr/bin/insmod kmod-33-r2: [USRMERGE] Rewrite bin/kmod to usr/bin/kmod kmod-33-r2: [USRMERGE] Rewrite bin/lsmod to usr/bin/lsmod kmod-33-r2: [USRMERGE] Rewrite bin/modinfo to usr/bin/modinfo kmod-33-r2: [USRMERGE] Rewrite bin/modprobe to usr/bin/modprobe kmod-33-r2: [USRMERGE] Rewrite bin/rmmod to usr/bin/rmmod kmod-33-r2: [USRMERGE] Rewrite sbin/ to usr/bin/ kmod-33-r2: [USRMERGE] Rewrite sbin/depmod to usr/bin/depmod kmod-33-r2: [USRMERGE] ignoring redundant symlink usr/bin/depmod -> depmod kmod-33-r2: [USRMERGE] Rewrite sbin/insmod to usr/bin/insmod kmod-33-r2: [USRMERGE] ignoring redundant symlink usr/bin/insmod -> insmod kmod-33-r2: [USRMERGE] Rewrite sbin/lsmod to usr/bin/lsmod kmod-33-r2: [USRMERGE] ignoring redundant symlink usr/bin/lsmod -> lsmod kmod-33-r2: [USRMERGE] Rewrite sbin/modinfo to usr/bin/modinfo kmod-33-r2: [USRMERGE] ignoring redundant symlink usr/bin/modinfo -> modinfo kmod-33-r2: [USRMERGE] Rewrite sbin/modprobe to usr/bin/modprobe kmod-33-r2: [USRMERGE] ignoring redundant symlink usr/bin/modprobe -> modprobe kmod-33-r2: [USRMERGE] Rewrite sbin/rmmod to usr/bin/rmmod kmod-33-r2: [USRMERGE] ignoring redundant symlink usr/bin/rmmod -> rmmod (4/8) Upgrading kmod-libs (33-r1 -> 33-r2) (5/8) Upgrading fribidi (1.0.15-r0 -> 1.0.16-r0) (6/8) Upgrading libeditorconfig (0.12.7-r0 -> 0.12.9-r0) (7/8) Upgrading py3-cairo (1.26.1-r0 -> 1.27.0-r0) (8/8) Upgrading py3-cairo-pyc (1.26.1-r0 -> 1.27.0-r0) Executing busybox-1.36.1-r32.trigger ERROR: busybox-1.36.1-r32.trigger: script exited with error 127 Executing kmod-33-r2.trigger ERROR: kmod-33-r2.trigger: script exited with error 127 ERROR: mrtest_nag.sh: script exited with error 127 OK: 1690 MiB in 814 packages / # ls sh: ls: not found / #
By clayton craft on 2024-09-26T11:01:56
Edited by Administrator - check out
- Administrator mentioned in merge request pmbootstrap!2418 (merged) · Imported
mentioned in merge request pmbootstrap!2418 (merged)
By clayton craft on 2024-09-30T11:44:48
- Author Owner
- Administrator closed · Imported
closed
- Clayton Craft mentioned in merge request !5563 (merged)
mentioned in merge request !5563 (merged)