#!/bin/sh
#
#  This script unsets the root password, so the VM owner can log in at
#  the console.
#
#  Must come after 95-install-base-system, since that disables root's password.
#

prefix=$1

if [ -e /usr/lib/xen-tools/common.sh ]; then
    . /usr/lib/xen-tools/common.sh
else
    . ./hooks/common.sh
fi

logMessage Script $0 starting

chroot ${prefix} passwd root -d

logMessage Script $0 finished
