| 1 |
#!/bin/sh |
| 2 |
# |
| 3 |
# Executed using the post-base-installer hooks after the base system |
| 4 |
# is installed, and before most packages are installed. APT is only |
| 5 |
# using packages on the CD / DVD / USB stick at this point. |
| 6 |
|
| 7 |
set -e |
| 8 |
|
| 9 |
. /usr/share/debconf/confmodule |
| 10 |
|
| 11 |
log() { logger -t eatmydata-udeb/post-base-installer "$@"; } |
| 12 |
info() { log "info: $*"; } |
| 13 |
error() { log "error: $*"; } |
| 14 |
|
| 15 |
at_exit() { |
| 16 |
error "script $0 terminated unexpectedly." |
| 17 |
} |
| 18 |
disable_exception() { trap - INT TERM EXIT; } |
| 19 |
trap at_exit INT TERM EXIT |
| 20 |
|
| 21 |
# First try here, in case the eatmydata package is available on the |
| 22 |
# ISO or we are installing via PXE. Next try is in the |
| 23 |
# pre-pkgsel step. |
| 24 |
eatmydata-install enable |
| 25 |
|
| 26 |
disable_exception |
| 27 |
exit 0 |