1
0
mirror of synced 2026-04-19 16:29:44 +00:00

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:
steve
2005-12-24 20:34:44 +00:00
parent 2d1f6ec282
commit f9752fd20c
12 changed files with 15 additions and 31 deletions

View File

@@ -1 +0,0 @@
*

View File

@@ -4,6 +4,5 @@
#
prefix=$1
hostname=$2
mv ${prefix}/lib/tls ${prefix}/lib/tls.disabled

View File

@@ -4,7 +4,6 @@
#
prefix=$1
hostname=$2
cat <<E_O_APT > ${prefix}/etc/apt/sources.list
#

View File

@@ -7,7 +7,6 @@
#
prefix=$1
hostname=$2
cat /etc/inittab | \
sed "s/tty1$/console/g" | \

View File

@@ -5,7 +5,6 @@
#
prefix=$1
hostname=$2
if [[ -z "${dhcp}" ]]; then

View File

@@ -6,8 +6,6 @@
prefix=$1
hostname=$2
echo ${hostname} > ${prefix}/etc/hostname
echo ${hostname} > ${prefix}/etc/mailname

View File

@@ -6,7 +6,6 @@
prefix=$1
hostname=$2
cp /etc/resolv.conf ${prefix}/etc/
cp /etc/hosts ${prefix}/etc/

View File

@@ -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

View File

@@ -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

View File

@@ -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
#

View File

@@ -6,7 +6,6 @@
prefix=$1
hostname=$2
chroot $prefix /usr/bin/apt-get clean