/usr/share/ltsp/plugins/ltsp-build-client/Debian/010-multistrap is in ltsp-server 5.5.7-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 42 43 44 | if [ "$BOOTSTRAP" = "multistrap" ]; then
case "$MODE" in
install)
MULTISTRAP_CONF=$(mktemp /tmp/ltsp-build-client-multistrap-XXXXXX)
cat > $MULTISTRAP_CONF << EOF
[General]
arch=$ARCH
directory=$ROOT
cleanup=true
# FIXME: only disable auth conditionally
noauth=true
unpack=true
debootstrap=Base Base-extra
aptsources=Base
[Base]
packages=apt dpkg
source=$MIRROR
suite=$DIST
omitdebsrc=true
[Base-extra]
packages=
# FIXME: parse from EXTRA_MIRROR?
source=$MULTISTRAP_EXTRA_MIRROR
suite=$MULTISTRAP_EXTRA_CODENAME
omitdebsrc=true
EOF
LC_ALL=C multistrap -f $MULTISTRAP_CONF
if [ -x "$CROSS_ARCH_EMULATOR" ]; then
# configured for cross architecture install. this requires a
# statically built emulator such as qemu, and binfmt_misc
# configured to use the emulator for binaries of that architecture.
# copy the binary, as it need to be present inside the chroot
cp "$CROSS_ARCH_EMULATOR" $ROOT/$(dirname $CROSS_ARCH_EMULATOR)
fi
chroot $ROOT dpkg --configure -a
;;
esac
fi
|