1
0
mirror of synced 2026-02-08 08:41:28 +00:00
Files
xen-tools.xen-tools/hooks/centos4/55-create-dev
steve c1e4d3531b 2006-06-15 07:42:59 by steve
Source common.sh from the parent directory if the global installation
 isn't found.
  This allows "make test" to succeed *before* the tools are installed.
2006-06-15 07:42:59 +00:00

43 lines
611 B
Bash
Executable File

#!/bin/sh
#
# This script ensures that the new guest images have a nicely
# populated /dev directory.
#
# Steve
# --
# http://www.steve.org.uk/
prefix=$1
#
# Source our common functions
#
if [ -e /usr/lib/xen-tools/common.sh ]; then
. /usr/lib/xen-tools/common.sh
else
. ../common.sh
fi
#
# Log our start
#
logMessage Script $0 starting
#
# Make the device nodes.
#
chroot ${prefix} /bin/sh -c 'cd /dev && ./MAKEDEV console'
chroot ${prefix} /bin/sh -c 'cd /dev && ./MAKEDEV null'
chroot ${prefix} /bin/sh -c 'cd /dev && ./MAKEDEV zero'
#
# Log our finish
#
logMessage Script $0 finished