#! /bin/sh
set -e

. /usr/share/debconf/confmodule

sync; sync; sync

# Stop the progress bar on serial consoles because otherwise the terminal
# emulator will get confused and the image will be garbled (the font gets
# a blue or white background).
db_get debian-installer/serial-console
if [ "$RET" = "true" ] ; then
    db_progress STOP
fi

/sbin/reboot
