/usr/share/ltsp/plugins/ltsp-build-client/Debian/010-debootstrap 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 45 46 47 48 49 | case "$MODE" in
commandline)
add_option "debootstrap-keyring" "`eval_gettext "use the specified keyring for debootstrap gpg verification"`" "advanced" "true"
;;
esac
if [ "$BOOTSTRAP" = "debootstrap" ]; then
case "$MODE" in
configure)
if [ -n "$option_debootstrap_keyring_value" ]; then
DEBOOTSTRAP_KEYRING="$option_debootstrap_keyring_value"
fi
;;
install)
if [ -n "$EXCLUDE" ] ; then
DEBOOTSTRAPOPTS="$DEBOOTSTRAPOPTS --exclude=$EXCLUDE"
fi
if [ -n "$INCLUDE" ] ; then
DEBOOTSTRAPOPTS="$DEBOOTSTRAPOPTS --include=$INCLUDE"
fi
if [ -n "$DEBOOTSTRAP_KEYRING" ]; then
DEBOOTSTRAPOPTS="$DEBOOTSTRAPOPTS --keyring=$DEBOOTSTRAP_KEYRING"
fi
if [ -x "$CROSS_ARCH_EMULATOR" ]; then
DEBOOTSTRAPOPTS="$DEBOOTSTRAPOPTS --foreign"
fi
if [ ! -f "/usr/lib/debootstrap/scripts/$DIST" ] && [ ! -f "/usr/share/debootstrap/scripts/$DIST" ]; then
echo "ERROR: invalid distribution: $DIST"
echo "you may need to specify the distribution with the --dist argument:"
echo " $0 --dist etch"
exit 1
fi
# Install base packages
LC_ALL=C ${DEBOOTSTRAP:-"debootstrap"} $DEBOOTSTRAPOPTS --arch $ARCH $DIST $ROOT $MIRROR
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)
# finish up last steps of debootstrap now that the emulator is
# available inside the chroot
LC_ALL=C chroot $ROOT debootstrap/debootstrap --second-stage
fi
;;
esac
fi
|