-
Wolfgang Schweer authored
Add share/ltsp/plugins/ltsp-build-client/Debian-custom/095-squashfs-image to enable setting it; see #904427 (LTSP) why this is needed. Add etc/ltsp/ltsp-build-client.conf with settings for NFS. Adjust sbin/debian-edu-pxeinstall and accordingly to be able to use NFS on the main network as well. Rework cf3/cf.homes: Write /etc/export file with profile and architecture dependent values. Drop no longer needed nfs-{common,kernel-server} configuration edits.
Wolfgang Schweer authoredAdd share/ltsp/plugins/ltsp-build-client/Debian-custom/095-squashfs-image to enable setting it; see #904427 (LTSP) why this is needed. Add etc/ltsp/ltsp-build-client.conf with settings for NFS. Adjust sbin/debian-edu-pxeinstall and accordingly to be able to use NFS on the main network as well. Rework cf3/cf.homes: Write /etc/export file with profile and architecture dependent values. Drop no longer needed nfs-{common,kernel-server} configuration edits.
095-squashfs-image 1.74 KiB
# This pluin overrides the default Debian plugin, see #904427 for details. It is
# needed to be able to provide the LTSP client root fs via NFS instead of NBD.
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"
add_option "default-nfs" "`eval_gettext "use NFS instead of NBD as default"`" "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 [ -n "$option_default_nfs_value" ]; then
# set an environment variable we can pick up later
DEFAULT_NFS="True"
fi
if [ -z "$SQUASHFS_IMAGE" ]; then
SQUASHFS_IMAGE="True"
fi
;;
after-install)
if [ "True" = "$DEFAULT_NFS" ]; then
sed -i 's#NBD AOE NFS#NFS NBD AOE#' $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