#!/bin/sh
# Configure this (virtual) host an eReuse PXE server.
#
# This is meant to be run when generating the server OVA.

# Remove unnecessary packages.
apt-get -qq purge @PKGS_TO_REMOVE@

# Fix bootloader.
update-grub
grub-install /dev/sda

# Restore the original init script.
mv /etc/rc.local.orig /etc/rc.local

exec reboot

#!/bin/sh
# Configure this (virtual) host an eReuse PXE server.
#
# This is meant to be run when generating the server OVA.

# Remove unnecessary packages.
apt-get -qq purge @PKGS_TO_REMOVE@

# Fix bootloader.
update-grub
grub-install /dev/sda

# Restore the original init script.
mv /etc/rc.local.orig /etc/rc.local

exec halt

Halt instead of rebooting after configuration init script.
Halt instead of rebooting after configuration init script.
