Skip to content

Do not symlink /usr/local/{bin,sbin,lib}, instead add them to PATH in /init

nl6720 requested to merge nl6720/mkinitcpio:do-no-symlink-/usr/local/bin into master

The symlinks cause issues since after switch root, the resolved paths to binaries suddenly are not valid anymore.

To still support launching executables from /usr/local/sbin and /usr/local/bin without calling them by their full path, add them to PATH. Since it does not appear to be possible to build busybox with a custom default PATH, export it in /init instead.

Fixes https://bugs.archlinux.org/task/66958.

Merge request reports