[Pkg-ltsp-devel] ltsp-client-builder
Ronny Aasen
ronny at aasen.cx
Mon Oct 2 10:12:16 UTC 2006
I have been testing ltsp-client-builder udeb in debian-edu etch beta3
installer.
and i have noticed that it tries to install sid as default, but our cd
use a etch mirror
in order to have it install etch i have modified my postinst (inserted
below)
it grabs distribution name from the debconf off the installer, i think
that's pretty generic.
and uses the default if it's missing.
Ronny Aasen
--ltsp-client-builder.postinst--
#! /bin/sh
set -e
. /usr/share/debconf/confmodule
log () {
logger -t ltsp-client-builder "$@"
}
# check if we have a valid CD-ROM mounted
if [ ! -f /cdrom/.disk/info ]; then
log "no CD-ROM found ! Not installing ltsp chroot"
exit 0
fi
# get the ok from the user to build the ltsp chroot
db_input medium ltsp-client-builder/run || [ $? -eq 30 ]
if ! db_go; then
exit 10 # back up to menu
fi
db_get ltsp-client-builder/run
if [ "$RET" = false ]; then
log "user requested no ltsp chroot"
exit 0
fi
#get dist
if db_get mirror/distribution && [ "$RET" ] ; then
log "mirror distribution is : $RET"
DIST=" --dist $RET"
fi
# if everything is fine, run ltsp-build-client on the target disk
db_progress START 0 2 ltsp-client-builder/progress
apt-install ltsp-server
db_progress STEP 1
DEBIAN_PRIORITY=critical
in-target /usr/sbin/ltsp-build-client \
--mirror file:///cdrom \
$DIST \
--security-mirror none
db_progress STEP 1
db_progress STOP
exit 0
More information about the Pkg-ltsp-devel
mailing list