1
0
mirror of synced 2026-04-15 07:39:46 +00:00

2006-11-29 17:35:40 by steve

Don't run MAKEDEV if there appear to be files in /dev on the new
 systems.  This is a potential speed gain.
This commit is contained in:
steve
2006-11-29 17:35:41 +00:00
parent 93006ef80f
commit ffda7dcf21
4 changed files with 79 additions and 0 deletions

View File

@@ -28,6 +28,16 @@ fi
logMessage Script $0 starting
#
# Early termination if we have a couple of common devices present
# should speed up installs which use --copy/--tar
#
if ( test `ls -1 ${prefix}/dev | wc -l` -gt 10 ); then
logMessage "Terminating because there appear to be files in /dev already"
fi
#
# Make the device nodes.
#

50
hooks/dapper/55-create-dev Executable file
View File

@@ -0,0 +1,50 @@
#!/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
. ./hooks/common.sh
fi
#
# Log our start
#
logMessage Script $0 starting
#
# Early termination if we have a couple of common devices present
# should speed up installs which use --copy/--tar
#
if ( test `ls -1 ${prefix}/dev | wc -l` -gt 10 ); then
logMessage "Terminating because there appear to be files in /dev already"
fi
#
# Make the device nodes.
#
cd ${prefix}/dev
./MAKEDEV generic
./MAKEDEV sd
#
# Log our finish
#
logMessage Script $0 finished

View File

@@ -27,6 +27,15 @@ fi
logMessage Script $0 starting
#
# Early termination if we have a couple of common devices present
# should speed up installs which use --copy/--tar
#
if ( test `ls -1 ${prefix}/dev | wc -l` -gt 10 ); then
logMessage "Terminating because there appear to be files in /dev already"
fi
#
# Make the device nodes.
#

View File

@@ -27,6 +27,16 @@ fi
logMessage Script $0 starting
#
# Early termination if we have a couple of common devices present
# should speed up installs which use --copy/--tar
#
if ( test `ls -1 ${prefix}/dev | wc -l` -gt 10 ); then
logMessage "Terminating because there appear to be files in /dev already"
fi
#
# Make the device nodes.
#