/usr/share/ltsp/plugins/ltsp-build-client/Debian/095-squashfs-image 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 | case "$MODE" in
commandline)
add_option "squashfs-image" "`eval_gettext "create squashfs image for use with NBD"`" "advanced" "false"
add_option "no-squashfs-image" "`eval_gettext "skip squashfs image creation"`" "advanced" "false"
;;
configure)
if [ -n "$option_squashfs_image_value" ]; then
# set an environment variable we can pick up later
SQUASHFS_IMAGE="True"
fi
if [ -n "$option_no_squashfs_image_value" ]; then
# set an environment variable we can pick up later
SQUASHFS_IMAGE="False"
fi
if [ -z "$SQUASHFS_IMAGE" ]; then
SQUASHFS_IMAGE="True"
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
|