Skip to contentSkip to conversation

bitbake.conf: Extend distro feature usrmerge to merge bin+sbin

PATCH Jörg Sommer 2 participants 2 messages Jul 24 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Jörg Sommer via lists.openembedded.org schrieb am Fr 24. Jul, 11:00 (+0200):

Quoted 19 lines

From: Randolph Sapp <[email protected]>

The split of bin and sbin became more artificial over time, and it is no longer clear why programmes goes into the one or the other directory; e.g. forever normal users have used sendmail in /usr/sbin, and fdisk and mkfs learned to operate on files to create images long ago.

Because systemd drives this movement to have only /usr/bin and symlink /bin, /sbin and /usr/sbin to there, the usrmerge feature (started by systemd too) should be extended to include the binmerge. For a system with split bin/sbin systemctl status reports the system as tainted for *unmerged-bin.*

Override most sbin variables to point to their bin equivalent when usermerge is enabled, with the exception being base_sbindir_native and sbindir_native. There is no guarantee the host machine is using this filesystem scheme.

This check was added to systemd back in 2024 [2].

Quoted 8 lines

[1] https://gitlab.archlinux.org/archlinux/packaging/packages/filesystem/-/blob/main/PKGBUILD
[2] https://github.com/systemd/systemd/commit/844863c61e7b501097da84a1e4d1e4a6aa6d9f0d

---

I took Randolph's version and reworked it a bit. But the idea stays the same.

This is a follow-up to <[email protected]>
https://lists.openembedded.org/g/openembedded-core/message/234858

Signature · 6 lines
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
#2 lore raw
Quoted 23 lines · Jörg Sommer

Jörg Sommer via lists.openembedded.org schrieb am Fr 24. Jul, 11:00 (+0200):

Quoted 22 lines

From: Randolph Sapp <[email protected]>

The split of bin and sbin became more artificial over time, and it is no longer clear why programmes goes into the one or the other directory; e.g. forever normal users have used sendmail in /usr/sbin, and fdisk and mkfs learned to operate on files to create images long ago.

Because systemd drives this movement to have only /usr/bin and symlink /bin, /sbin and /usr/sbin to there, the usrmerge feature (started by systemd too) should be extended to include the binmerge. For a system with split bin/sbin systemctl status reports the system as tainted for *unmerged-bin.*

Override most sbin variables to point to their bin equivalent when usermerge is enabled, with the exception being base_sbindir_native and sbindir_native. There is no guarantee the host machine is using this filesystem scheme.

This check was added to systemd back in 2024 [2].

[1] https://gitlab.archlinux.org/archlinux/packaging/packages/filesystem/-/blob/main/PKGBUILD
[2] https://github.com/systemd/systemd/commit/844863c61e7b501097da84a1e4d1e4a6aa6d9f0d

Quoted 8 lines
Quoted 5 lines

---

I took Randolph's version and reworked it a bit. But the idea stays the same.

This is a follow-up to <[email protected]>
https://lists.openembedded.org/g/openembedded-core/message/234858

Thanks for taking this forward Jörg. My main build machine is too slow to look at Yocto right now. Trying to requisition more hardware.