aboutsummaryrefslogtreecommitdiffstats
path: root/src/fripost-partman-udeb/debian/postinst
blob: 6ba238ef693a004ac5d1c4de6f9229b88bcde242 (plain)
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
#! /bin/sh

set -ue

. /lib/fripost-partman/base.sh

log "Starting..."
db_input high fripost/partition-script || true
db_go
db_get fripost/partition-script
script=/"${RET#/}"

[ -f "$script" -a -x "$script" ] || \
    fatal "$script does not exist, or is not executable."

log "Running $script"
log-output -t fripost-partman "$script"

rv=$?
if [ $rv -ne 0 ]; then
    log "Partitioning script failed; exited with $rv"
    exit $rv
fi

log "Partitioning appears to have completed successfully."