2005-12-24 20:34:44 by steve
The hook scripts are now only passed a single argument on the command line - the name of the mount point. The hostname is now accessible via the environment.
This commit is contained in:
@@ -1 +0,0 @@
|
||||
*
|
||||
@@ -4,6 +4,5 @@
|
||||
#
|
||||
|
||||
prefix=$1
|
||||
hostname=$2
|
||||
|
||||
mv ${prefix}/lib/tls ${prefix}/lib/tls.disabled
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#
|
||||
|
||||
prefix=$1
|
||||
hostname=$2
|
||||
|
||||
cat <<E_O_APT > ${prefix}/etc/apt/sources.list
|
||||
#
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#
|
||||
|
||||
prefix=$1
|
||||
hostname=$2
|
||||
|
||||
cat /etc/inittab | \
|
||||
sed "s/tty1$/console/g" | \
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#
|
||||
|
||||
prefix=$1
|
||||
hostname=$2
|
||||
|
||||
if [[ -z "${dhcp}" ]]; then
|
||||
|
||||
|
||||
@@ -6,8 +6,6 @@
|
||||
|
||||
|
||||
prefix=$1
|
||||
hostname=$2
|
||||
|
||||
|
||||
echo ${hostname} > ${prefix}/etc/hostname
|
||||
echo ${hostname} > ${prefix}/etc/mailname
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
|
||||
prefix=$1
|
||||
hostname=$2
|
||||
|
||||
cp /etc/resolv.conf ${prefix}/etc/
|
||||
cp /etc/hosts ${prefix}/etc/
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
#
|
||||
|
||||
prefix=$1
|
||||
hostname=$2
|
||||
|
||||
chroot ${prefix} /usr/bin/apt-get update
|
||||
DEBIAN_FRONTEND=noninteractive chroot ${prefix} /usr/bin/apt-get --yes --force-yes install ssh
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
# The virtual image is mounted here.
|
||||
#
|
||||
prefix=$1
|
||||
hostname=$2
|
||||
|
||||
#
|
||||
# Copy the modules from the host to the new system - we should only
|
||||
|
||||
@@ -9,11 +9,10 @@
|
||||
#
|
||||
# Steve
|
||||
# --
|
||||
# $Id: 90-make-fstab,v 1.1 2005-12-24 20:05:46 steve Exp $
|
||||
# $Id: 90-make-fstab,v 1.2 2005-12-24 20:34:44 steve Exp $
|
||||
|
||||
|
||||
prefix=$1
|
||||
hostname=$2
|
||||
|
||||
|
||||
#
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
|
||||
|
||||
prefix=$1
|
||||
hostname=$2
|
||||
|
||||
chroot $prefix /usr/bin/apt-get clean
|
||||
|
||||
|
||||
Reference in New Issue
Block a user