#!/bin/sh
#
#  This script unsets the root password, so the VM owner can log in at
#  the console.
#

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
