coreos / fedora-coreos-tracker

Issue tracker for Fedora CoreOS
https://fedoraproject.org/coreos/
264 stars 59 forks source link

Investigate what's needed for "Unify `/usr/bin` and `/usr/sbin`" Fedora change #1759

Open travier opened 4 months ago

travier commented 4 months ago

Describe the enhancement

✔️ Unify /usr/bin and /usr/sbin

  • The /usr/sbin directory becomes a symlink to bin, which means paths like /usr/bin/foo and /usr/sbin/foo point to the same place. /bin and /sbin are already symlinks to usr/bin and usr/sbin, so effectively /bin/foo and /sbin/foo also point to the same place. /usr/sbin will be removed from the default $PATH. The same change is also done to make /usr/local/sbin point to bin, effectively making /usr/local/bin/foo and /usr/local/sbin/foo point to the same place. The definition of %_sbindir will be changed to %_bindir, so packages will start using the new directory after a rebuild without any further action. Maintainers may stop using %_sbindir, but don't need to.
  • Tracking bug: #2267022
  • NOTES: TR: Should not impact FCOS

This is apparently impacting Silverblue so might impact FCOS:

Edit: Created: https://gitlab.com/fedora/bootc/tracker/-/issues/29

See: https://github.com/coreos/fedora-coreos-tracker/issues/1714#issuecomment-2223100778

System details

N/A

Additional information

No response

travier commented 4 months ago

See: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/EOKNNAMSTPNFVKU3WQ3R42HFXKE6QLJS/

travier commented 5 days ago

This should be ready in Rawhide: https://gitlab.com/fedora/bootc/tracker/-/issues/29. This would need testing.

travier commented 5 days ago

This might also impacts systems that have binaries in /usr/local/sbin as those should be moved to /usr/local/bin.

jlebon commented 5 days ago

Note also that currently /usr/local is populated by rpm-ostree: https://github.com/coreos/rpm-ostree/blob/b34bc4fb7ae32926372eca0de7987bbb0da4fa06/src/app/rpm-ostree-0-integration.conf#L8-L18

Strictly speaking, we would have to also update things so that on f42+, we match what filesystem now does there too.