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
|
#!/bin/sh -e
#
# Executed using the post-base-installer hooks after the base system
# is installed, and before most packages are installed. APT is
# only using packages on the CD/DVD at this point.
. /usr/share/debconf/confmodule
log() { logger -t debian-edu-install/post-base-installer "$@"; }
info() { log "info: $*"; }
error() { log "error: $*"; }
at_exit() {
error "script $0 terminated unexpectedly."
}
disable_exception() { trap - INT TERM EXIT; }
trap at_exit INT TERM EXIT
# Try here, in case the eatmydata package is available on the ISO or
# we are installing via PXE.
db_get debian-edu-install/quick-install
if [ true = "$RET" ] ; then
edu-eatmydata-install enable
else
info "not enabling quick install, preseed debian-edu-install/quick-install=true to change this."
fi
disable_exception
exit 0
|