File: finish-install

package info (click to toggle)
debian-edu-install 1.821%2Bdeb8u2
  • links: PTS, VCS
  • area: main
  • in suites: jessie
  • size: 1,164 kB
  • ctags: 73
  • sloc: sh: 1,328; makefile: 101
file content (43 lines) | stat: -rwxr-xr-x 923 bytes parent folder | download | duplicates (7)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/sh -e
#
# Last finishing touch before rebooting into the installed system.
#
# Try to avoid adding new code here.  Please put it in
# debian-edu-config in the
# /usr/share/debian-edu-config/d-i/finish-install script instead.

. /usr/share/debconf/confmodule
. /lib/debian-edu-common

log() {
    logger -t 10debian-edu-install "$@"
}

error() {
    logger -t 10debian-edu-install "error: $@"
}

at_exit() {
    error "script $0 terminated unexpectedly."
}
disable_exception() { trap - INT TERM EXIT; }
trap at_exit INT TERM EXIT

# Stop automatic lvm resize script set up before base-installer
# started.
rm -f /target/debian-edu-extend-file-systems

load_proxy_conf

hook=/target/usr/share/debian-edu-config/d-i/finish-install
if [ -x $hook ] ; then
    log "Running debian-edu-config finish-install hook"
    $hook
else
    error "Unable to find $hook"
fi

edu-eatmydata-install disable

disable_exception
exit 0