File: post-base-installer

package info (click to toggle)
debian-edu-install 1.916
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,160 kB
  • sloc: sh: 1,317; makefile: 101
file content (29 lines) | stat: -rwxr-xr-x 824 bytes parent folder | download | duplicates (6)
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