debian/eatmydata-udeb.finish-install
raw| 1 | #! /bin/sh -e |
| 2 | # |
| 3 | # Last finishing touch before rebooting into the installed system. |
| 4 | |
| 5 | log() { logger -t eatmydata-udeb/finish-install "$@"; } |
| 6 | info() { log "info: $*"; } |
| 7 | error() { log "error: $*"; } |
| 8 | |
| 9 | at_exit() { |
| 10 | error "script $0 terminated unexpectedly." |
| 11 | } |
| 12 | disable_exception() { trap - INT TERM EXIT; } |
| 13 | trap at_exit INT TERM EXIT |
| 14 | |
| 15 | eatmydata-install disable |
| 16 | |
| 17 | disable_exception |
| 18 | exit 0 |