Joshua Watt schrieb am Mo 13. Jul, 10:29 (-0600): > On Mon, Jul 6, 2026 at 10:59 AM Jörg Sommer via lists.openembedded.org > <[email protected]> wrote: > > > From: Jörg Sommer <[email protected]> > > > > The old mtab pointed to /proc/mounts which itself is a symlink. Systemd > > therefore tries to replace it with a symlink to /proc/self/mounts, but > > fails > > on a read-only rootfs: > > > > systemd-tmpfiles: symlink(../proc/self/mounts, /etc/mtab) failed: > > Read-only file system > > > > Signed-off-by: Jörg Sommer <[email protected]> > > --- > > meta/recipes-core/base-files/base-files_3.0.14.bb | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/meta/recipes-core/base-files/base-files_3.0.14.bb > > b/meta/recipes-core/base-files/base-files_3.0.14.bb > > index d4d777b485..aafc0aa923 100644 > > --- a/meta/recipes-core/base-files/base-files_3.0.14.bb > > +++ b/meta/recipes-core/base-files/base-files_3.0.14.bb > > @@ -109,7 +109,7 @@ do_install () { > > install -m 0644 ${S}/host.conf ${D}${sysconfdir}/host.conf > > install -m 0644 ${S}/motd ${D}${sysconfdir}/motd > > > > - ln -sf /proc/mounts ${D}${sysconfdir}/mtab > > + ln -sf ../proc/self/mounts ${D}${sysconfdir}/mtab > > > > This should be absolute /proc/self/mounts otherwise it's assuming > sysconfdir is only one directory level deep, and AFIACT, there is no reason > for it to be absolute
The path comes from tmpfiles.d/etc.conf. I suspect it has to do with the containers and mounting proc with different options (hidepid, subset). So the container root dir in /run/…/etc/mtab points to the right mounts file viewing from the outside. https://github.com/systemd/systemd/blob/9ac37aa0c7bc63dc93a29cbe631f394635ec425f/tmpfiles.d/etc.conf.in#L11 But `ln -s -f -T -n -r ${D}/proc/self/mounts ${D}${sysconfdir}/mtab` seems to work. -- Navimatix GmbH T: 03641 - 327 99 0 Tatzendpromenade 2 F: 03641 - 526 306 07745 Jena www.navimatix.de Geschäftsführer: Steffen Späthe, Jan Rommeley Registergericht: Amtsgericht Jena, HRB 501480
smime.p7s
Description: S/MIME cryptographic signature
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#241054): https://lists.openembedded.org/g/openembedded-core/message/241054 Mute This Topic: https://lists.openembedded.org/mt/120143149/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
