/etc/fakechroot/debootstrap.env is in fakechroot 2.17.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | # Additional environment setting for debootstrap
# Add /usr/sbin and /sbin to PATH if chroot command can't be found
if ! command -v chroot >/dev/null; then
PATH="${PATH:-/usr/bin:/bin}:/usr/sbin:/sbin"
export PATH
fi
# Set a list of command substitutions needed by debootstrap
fakechroot_debootstrap_env_cmd_subst="
/bin/mount=/bin/true
/sbin/devfs=/bin/true
/sbin/insserv=/bin/true
/sbin/ldconfig=/bin/true
/usr/bin/ischroot=/bin/true
/usr/bin/ldd=/usr/bin/ldd.fakechroot
/usr/bin/mkfifo=/bin/true
/var/lib/dpkg/info/freebsd-utils.postinst=/bin/true
/var/lib/dpkg/info/kbdcontrol.postinst=/bin/true
"
FAKECHROOT_CMD_SUBST="${FAKECHROOT_CMD_SUBST:+$FAKECHROOT_CMD_SUBST:}$(echo $fakechroot_debootstrap_env_cmd_subst | tr ' ' ':')"
export FAKECHROOT_CMD_SUBST
# Set the default list of directories excluded from being chrooted
FAKECHROOT_EXCLUDE_PATH="${FAKECHROOT_EXCLUDE_PATH:-/dev:/proc:/sys}"
export FAKECHROOT_EXCLUDE_PATH
# Change path for unix sockets because we don't want to exceed 108 bytes
FAKECHROOT_AF_UNIX_PATH=/tmp
export FAKECHROOT_AF_UNIX_PATH
# Set the LD_LIBRARY_PATH based on host's /etc/ld.so.conf.d/*
fakechroot_debootstrap_env_paths=`
cat /etc/ld.so.conf /etc/ld.so.conf.d/* 2>/dev/null | grep ^/ | while read fakechroot_debootstrap_env_d; do
printf '%s:' "$fakechroot_debootstrap_env_d"
done
`
if [ -n "$fakechroot_debootstrap_env_paths" ]; then
LD_LIBRARY_PATH="${LD_LIBRARY_PATH:+$LD_LIBRARY_PATH:}${fakechroot_debootstrap_env_paths%:}"
export LD_LIBRARY_PATH
fi
|