systemrescue-zfs/airootfs/etc/profile.d/env-path.sh
Gerd v. Egidy 0009e91a8f 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.
2021-10-25 21:00:49 +02:00

4 lines
215 B
Bash

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