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 > > # deal with hostname > if [ "${hostname}" ]; then > -- > 2.53.0 > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#240846): https://lists.openembedded.org/g/openembedded-core/message/240846 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]] -=-=-=-=-=-=-=-=-=-=-=-
