|
|
|
@ -143,74 +143,92 @@ zsh/zshenv = /bedrock/share/zsh/include-bedrock
@@ -143,74 +143,92 @@ zsh/zshenv = /bedrock/share/zsh/include-bedrock
|
|
|
|
|
|
|
|
|
|
[env-vars] |
|
|
|
|
# |
|
|
|
|
# Many programs search environment variables consisting of a colon-separated |
|
|
|
|
# list of directories. We can use these to teach these programs about |
|
|
|
|
# cross-stratum content. |
|
|
|
|
# |
|
|
|
|
# Generally, the fields fall into three categories, which should be in the |
|
|
|
|
# following order: |
|
|
|
|
# |
|
|
|
|
# - The file must come from a specific stratum. |
|
|
|
|
# - For example, `reboot` should be provided by the stratum providing the |
|
|
|
|
# current init. |
|
|
|
|
# - Typically, these are provided by `/bedrock/cross/pin/[...]`. |
|
|
|
|
# - The file must come from the local stratum. |
|
|
|
|
# - Bedrock Linux assumes strata are self-sufficient in terms of hard |
|
|
|
|
# dependencies. Thus, if something has a hard dependency on a given file |
|
|
|
|
# that file *must* be available locally. |
|
|
|
|
# - For example, if a given distro's `/bin/sh` is provided by bash, that |
|
|
|
|
# distro's scripts may use bash-isms, and thus another distro's `/bin/sh` |
|
|
|
|
# may be unsuitable. |
|
|
|
|
# - Typically these values are the traditional values of the given |
|
|
|
|
# environment variable. |
|
|
|
|
# - The file may come from any stratum. |
|
|
|
|
# - If the above two categories don't apply, we know the program isn't |
|
|
|
|
# picky about the specific version of the given file, and thus any distro |
|
|
|
|
# may provide it. |
|
|
|
|
# - Typically, these are provided by `/bedrock/cross/[...]`. |
|
|
|
|
# |
|
|
|
|
|
|
|
|
|
PATH = /bedrock/cross/pin/bin:/bedrock/bin:/usr/local/sbin:/usr/local/bin:/opt/sbin:/opt/bin:/usr/sbin:/usr/bin:/sbin:/bin:/bedrock/cross/bin |
|
|
|
|
MANPATH = /bedrock/share/man:/usr/local/share/man:/usr/share/man:/bedrock/cross/man |
|
|
|
|
INFOPATH = /bedrock/share/info:/usr/local/share/info:/usr/share/info:/bedrock/cross/info |
|
|
|
|
XDG_DATA_DIRS = /usr/local/share:/usr/share:/var/lib/snapd/desktop:/var/lib/flatpak/exports/share:/bedrock/cross |
|
|
|
|
TERMINFO_DIRS = /usr/local/share/terminfo:/usr/share/terminfo:/bedrock/cross/terminfo |
|
|
|
|
# Many programs search environment variables consisting of a (usually colon |
|
|
|
|
# separated) list of directories. We can use these to teach these programs |
|
|
|
|
# about cross-stratum content. |
|
|
|
|
# |
|
|
|
|
# These variables are typically searched in listed order. To manage this |
|
|
|
|
# order, the configuration below is broken up into three sections for each |
|
|
|
|
# variable: |
|
|
|
|
# |
|
|
|
|
# - PREFIX:<envvar> entries. Bedrock ensures these are at the front of the |
|
|
|
|
# environment variable. These are used to ensure a given resource is provided |
|
|
|
|
# by a specific stratum. For example, this ensures `reboot` is provided by the |
|
|
|
|
# init stratum. |
|
|
|
|
# |
|
|
|
|
# - INFIX:<envvar> entries. These are used to ensure a given entry comes from |
|
|
|
|
# the local stratum. For example, some software may request to be launched by |
|
|
|
|
# sh via `#!/usr/bin/env sh` but utilize bash-isms which are valid on some |
|
|
|
|
# distros which symlink `sh` to `bash`, but not others which don't. Such |
|
|
|
|
# software must use the local stratum's `sh` to ensure the `bash` shell they |
|
|
|
|
# expect is utilized. |
|
|
|
|
# |
|
|
|
|
# - SUFFIX:<envvar> entries. Bedrock ensures these are at the end of the |
|
|
|
|
# environment variable. Given the PREFIX:<envvar> (specific stratum) and |
|
|
|
|
# INFIX:<envvar> (local stratum) do not contain the item, it likely does not |
|
|
|
|
# matter which stratum provides it, and so this contains resources from any |
|
|
|
|
# strata which provide the resource. |
|
|
|
|
# |
|
|
|
|
|
|
|
|
|
PREFIX:PATH = /bedrock/cross/pin/bin:/bedrock/bin |
|
|
|
|
INFIX:PATH = /usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin |
|
|
|
|
SUFFIX:PATH = /bedrock/cross/bin |
|
|
|
|
|
|
|
|
|
PREFIX:MANPATH = /bedrock/cross/pin/man:/bedrock/share/man |
|
|
|
|
INFIX:MANPATH = /usr/local/share/man:/usr/share/man:/bedrock/cross/man |
|
|
|
|
SUFFIX:MANPATH = /bedrock/cross/man |
|
|
|
|
|
|
|
|
|
PREFIX:INFOPATH = /bedrock/cross/pin/info:/bedrock/share/info |
|
|
|
|
INFIX:INFOPATH = /usr/local/share/info:/usr/share/info |
|
|
|
|
SUFFIX:INFOPATH = /bedrock/cross/info |
|
|
|
|
|
|
|
|
|
PREFIX:XDG_DATA_DIRS = /bedrock/cross/pin |
|
|
|
|
INFIX:XDG_DATA_DIRS = /usr/local/share:/usr/share |
|
|
|
|
SUFFIX:XDG_DATA_DIRS = /bedrock/cross |
|
|
|
|
|
|
|
|
|
PREFIX:TERMINFO_DIRS = /bedrock/cross/pin/terminfo |
|
|
|
|
INFIX:TERMINFO_DIRS = /usr/local/share/terminfo:/usr/share/terminfo |
|
|
|
|
SUFFIX:TERMINFO_DIRS = /bedrock/cross/terminfo |
|
|
|
|
|
|
|
|
|
PREFIX:fpath = /bedrock/share/zsh/completion |
|
|
|
|
SUFFIX:fpath = /bedrock/cross/zsh-completion |
|
|
|
|
|
|
|
|
|
[restriction] |
|
|
|
|
restrict = apt-key, debuild, dpkg-buildpackage, gdb, git, kiss, makepkg, rpmbuild |
|
|
|
|
restrict = apt-key, debuild, dpkg-buildpackage, gdb, git, kiss, makepkg, pkgmk, prt-get, rpmbuild |
|
|
|
|
|
|
|
|
|
[cross] |
|
|
|
|
priority = void, arch |
|
|
|
|
|
|
|
|
|
[cross-pass] |
|
|
|
|
man = /bedrock/share/man, /usr/local/share/man, /usr/share/man |
|
|
|
|
info = /bedrock/share/info, /usr/local/share/info, /usr/share/info |
|
|
|
|
icons = /usr/local/share/icons, /usr/share/icons |
|
|
|
|
pixmaps = /usr/local/share/pixmaps, /usr/share/pixmaps |
|
|
|
|
man = $MANPATH |
|
|
|
|
info = $INFOPATH |
|
|
|
|
icons = $XDG_DATA_DIRS/icons |
|
|
|
|
pixmaps = $XDG_DATA_DIRS/pixmaps |
|
|
|
|
zoneinfo = /usr/share/zoneinfo |
|
|
|
|
terminfo = /usr/local/share/terminfo, /usr/share/terminfo |
|
|
|
|
terminfo = $TERMINFO_DIRS |
|
|
|
|
src = /usr/local/src, /usr/src |
|
|
|
|
bash-completion = /usr/share/bash-completion |
|
|
|
|
zsh-completion = /usr/share/zsh/site-functions, /usr/share/zsh/vendor-completion, /usr/share/zsh/functions/Completion/Debian, /usr/share/zsh/functions/Completion/Mandriva, /usr/share/zsh/functions/Completion/openSUSE, /usr/share/zsh/functions/Completion/Redhat |
|
|
|
|
zsh-completion = $fpath |
|
|
|
|
firmware = /lib/firmware/updates/UTS_RELEASE, /lib/firmware/updates, /lib/firmware/UTS_RELEASE, /lib/firmware |
|
|
|
|
|
|
|
|
|
[cross-bin] |
|
|
|
|
bin = /usr/local/bin, /usr/local/sbin, /opt/bin, /opt/sbin, /usr/bin, /usr/sbin, /bin, /sbin, /usr/games, /usr/local/games, /snap/bin |
|
|
|
|
bin = $PATH |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# These programs are strongly related to the init system. If the stratum |
|
|
|
|
# providing init provides these commands, that version should take priority. |
|
|
|
|
# Typical Bedrock systems have /bedrock/pin/bin/ at the front of the $PATH. |
|
|
|
|
# |
|
|
|
|
pin/bin/systemctl = init:/usr/sbin/systemctl, init:/usr/bin/systemctl, init:/sbin/systemctl, init:/bin/systemctl |
|
|
|
|
pin/bin/rc-service = init:/usr/sbin/rc-service, init:/usr/bin/rc-service, init:/sbin/rc-service, init:/bin/rc-service |
|
|
|
|
pin/bin/rc-status = init:/usr/sbin/rc-status, init:/usr/bin/rc-status, init:/sbin/rc-status, init:/bin/rc-status |
|
|
|
|
pin/bin/rc-update = init:/usr/sbin/rc-update, init:/usr/bin/rc-update, init:/sbin/rc-update, init:/bin/rc-update |
|
|
|
|
pin/bin/rc-udevadm = init:/usr/sbin/rc-udevadm, init:/usr/bin/rc-udevadm, init:/sbin/rc-udevadm, init:/bin/rc-udevadm |
|
|
|
|
pin/bin/sv = init:/usr/sbin/sv, init:/usr/bin/sv, init:/sbin/sv, init:/bin/sv |
|
|
|
|
pin/bin/poweroff = init:/usr/sbin/poweroff, init:/sbin/poweroff, init:/usr/bin/poweroff, init:/bin/poweroff |
|
|
|
|
pin/bin/reboot = init:/usr/sbin/reboot, init:/sbin/reboot, init:/usr/bin/reboot, init:/bin/reboot |
|
|
|
|
pin/bin/shutdown = init:/usr/sbin/shutdown, init:/sbin/shutdown, init:/usr/bin/shutdown, init:/bin/shutdown |
|
|
|
|
pin/bin/halt = init:/usr/sbin/halt, init:/sbin/halt, init:/usr/bin/halt, init:/bin/halt |
|
|
|
|
pin/bin/systemctl = init:$PATH/systemctl |
|
|
|
|
pin/bin/rc-service = init:$PATH/rc-service |
|
|
|
|
pin/bin/rc-status = init:$PATH/rc-status |
|
|
|
|
pin/bin/rc-update = init:$PATH/rc-update |
|
|
|
|
pin/bin/rc-udevadm = init:$PATH/rc-udevadm |
|
|
|
|
pin/bin/sv = init:$PATH/sv |
|
|
|
|
pin/bin/poweroff = init:$PATH/poweroff |
|
|
|
|
pin/bin/reboot = init:$PATH/reboot |
|
|
|
|
pin/bin/shutdown = init:$PATH/shutdown |
|
|
|
|
pin/bin/halt = init:$PATH/halt |
|
|
|
|
|
|
|
|
|
# [restriction]/restrict items are only restricted if run through strat or |
|
|
|
|
# cross. List any such items here to ensure they are run through cross to be |
|
|
|
@ -220,18 +238,20 @@ pin/bin/halt = init:/usr/sbin/halt, init:/sbin/halt, init:
@@ -220,18 +238,20 @@ pin/bin/halt = init:/usr/sbin/halt, init:/sbin/halt, init:
|
|
|
|
|
# boundaries, just in case there is some dependency on its specific quirks. |
|
|
|
|
# Ensure all items here use the local alias. If the item is not available |
|
|
|
|
# locally, the call will fall through to un-pinned `bin` above. |
|
|
|
|
pin/bin/apt-key = local:/usr/local/bin/apt-key, local:/usr/bin/apt-key |
|
|
|
|
pin/bin/debuild = local:/usr/local/bin/debuild, local:/usr/bin/debuild |
|
|
|
|
pin/bin/dpkg-buildpackage = local:/usr/local/bin/dpkg-buildpackage, local:/usr/bin/dpkg-buildpackage |
|
|
|
|
pin/bin/gdb = local:/usr/local/bin/gdb, local:/usr/bin/gdb |
|
|
|
|
pin/bin/git = local:/usr/local/bin/git, local:/usr/bin/git |
|
|
|
|
pin/bin/kiss = local:/usr/local/bin/kiss, local:/usr/bin/kiss |
|
|
|
|
pin/bin/makepkg = local:/usr/local/bin/makepkg, local:/usr/bin/makepkg |
|
|
|
|
pin/bin/rpmbuild = local:/usr/local/bin/rpmbuild, local:/usr/bin/rpmbuild |
|
|
|
|
pin/bin/apt-key = local:$PATH/apt-key |
|
|
|
|
pin/bin/debuild = local:$PATH/debuild |
|
|
|
|
pin/bin/dpkg-buildpackage = local:$PATH/dpkg-buildpackage |
|
|
|
|
pin/bin/gdb = local:$PATH/gdb |
|
|
|
|
pin/bin/git = local:$PATH/git |
|
|
|
|
pin/bin/kiss = local:$PATH/kiss |
|
|
|
|
pin/bin/makepkg = local:$PATH/makepkg |
|
|
|
|
pin/bin/pkgmk = local:$PATH/pkgmk |
|
|
|
|
pin/bin/prt-get = local:$PATH/prt-get |
|
|
|
|
pin/bin/rpmbuild = local:$PATH/rpmbuild |
|
|
|
|
|
|
|
|
|
[cross-ini] |
|
|
|
|
applications = /usr/local/share/applications, /usr/share/applications, /var/lib/flatpak/exports/share/applications |
|
|
|
|
xsessions = init:/usr/local/share/xsessions, init:/usr/share/xsessions, /usr/local/share/xsessions, /usr/share/xsessions |
|
|
|
|
applications = $XDG_DATA_DIRS/applications |
|
|
|
|
xsessions = init:$XDG_DATA_DIRS/xsessions, $XDG_DATA_DIRS/xsessions |
|
|
|
|
|
|
|
|
|
dbus-system = /usr/share/dbus-1/system-services |
|
|
|
|
dbus-session = /usr/share/dbus-1/services |
|
|
|
|