/usr/share/ltsp/plugins/ltsp-build-client/Debian/095-squashfs-image is in ltsp-server 5.4.2-6+deb7u1.
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 | case "$MODE" in
commandline)
add_option "squashfs-image" "`eval_gettext "create squashfs image for use with NBD"`" "advanced" "false"
;;
configure)
if [ -n "$option_squashfs_image_value" ]; then
# set an environment variable we can pick up later
SQUASHFS_IMAGE="True"
fi
;;
install)
if [ "True" = "$SQUASHFS_IMAGE" ]; then
mkdir -p $ROOT/etc/ltsp/
echo BOOTPROMPT_OPTS=\'quiet ro root=/dev/nbd0 init=/sbin/init-ltsp\' > $ROOT/etc/ltsp/update-kernels.conf
fi
;;
finalization)
if [ "True" = "$SQUASHFS_IMAGE" ]; then
DEBIAN_OLD_FRONTEND=$DEBIAN_FRONTEND
if [ -n "$CHROOT" ]; then
UPDATE_IMAGE_OPTIONS="${CHROOT}"
fi
DEBIAN_FRONTEND=noninteractive
export DEBIAN_FRONTEND
/usr/sbin/ltsp-update-image --config-nbd ${UPDATE_IMAGE_OPTIONS}
DEBIAN_FRONTEND=$DEBIAN_OLD_FRONTEND
export DEBIAN_FRONTEND
fi
;;
esac
|