Support chrooting on older systems without usrmerge

On newer systems /bin is linked to /usr/bin, the same goes for /sbin.
This is called usrmerge. Some distributions seem to have introduced
usrmerge just very recently, like openSUSE in 2021. So SystemRescue
should fully support this for years to come.

So we need /bin, /sbin and /usr/sbin in the default $PATH to make it
easy to use from within a chroot.
This commit is contained in:
Gerd v. Egidy 2021-10-25 20:55:23 +02:00
parent 304478b395
commit 0009e91a8f

View file

@ -1,2 +1,3 @@
# /sbin is not used on ArchLinux but it is often required in chroot # /sbin is not used on ArchLinux but it is often required in chroot
export PATH=${PATH}:/sbin:/usr/share/sysrescue/bin/ # also support chrooting on older systems without usrmerge (/usr/sbin and /bin)
export PATH=${PATH}:/sbin:/usr/sbin:/bin:/usr/share/sysrescue/bin/