Compare commits
6 Commits
release-4.
...
debian-3.9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85846b480d | ||
|
|
f73eb76b1e | ||
|
|
f56ebbaf68 | ||
|
|
09bf1cd84d | ||
|
|
7d9b9b9881 | ||
|
|
aba8e1b411 |
10
Makefile
10
Makefile
@@ -12,9 +12,8 @@
|
|||||||
#
|
#
|
||||||
# Only used to build distribution tarballs.
|
# Only used to build distribution tarballs.
|
||||||
#
|
#
|
||||||
TMP ?= /tmp
|
|
||||||
DIST_PREFIX = ${TMP}
|
DIST_PREFIX = ${TMP}
|
||||||
VERSION = 4.1
|
VERSION = 3.9
|
||||||
BASE = xen-tools
|
BASE = xen-tools
|
||||||
|
|
||||||
|
|
||||||
@@ -57,7 +56,7 @@ clean:
|
|||||||
@find . -name '*.tmp' -exec rm \{\} \;
|
@find . -name '*.tmp' -exec rm \{\} \;
|
||||||
@find . -name 'tags' -exec rm \{\} \;
|
@find . -name 'tags' -exec rm \{\} \;
|
||||||
@find . -name '*.8.gz' -exec rm \{\} \;
|
@find . -name '*.8.gz' -exec rm \{\} \;
|
||||||
@if [ -d man ]; then rm -rf man ; fi
|
@find man -name '*.html' -exec rm \{\} \;
|
||||||
@if [ -e build-stamp ]; then rm -f build-stamp ; fi
|
@if [ -e build-stamp ]; then rm -f build-stamp ; fi
|
||||||
@if [ -e configure-stamp ]; then rm -f configure-stamp ; fi
|
@if [ -e configure-stamp ]; then rm -f configure-stamp ; fi
|
||||||
@if [ -d debian/xen-tools ]; then rm -rf ./debian/xen-tools; fi
|
@if [ -d debian/xen-tools ]; then rm -rf ./debian/xen-tools; fi
|
||||||
@@ -159,8 +158,6 @@ install-hooks:
|
|||||||
cp -R hooks/edgy/*-* ${prefix}/usr/lib/xen-tools/edgy.d/
|
cp -R hooks/edgy/*-* ${prefix}/usr/lib/xen-tools/edgy.d/
|
||||||
-cd ${prefix}/usr/lib/xen-tools/ && ln -s edgy.d feisty.d
|
-cd ${prefix}/usr/lib/xen-tools/ && ln -s edgy.d feisty.d
|
||||||
-cd ${prefix}/usr/lib/xen-tools/ && ln -s edgy.d gutsy.d
|
-cd ${prefix}/usr/lib/xen-tools/ && ln -s edgy.d gutsy.d
|
||||||
-cd ${prefix}/usr/lib/xen-tools/ && ln -s edgy.d hardy.d
|
|
||||||
-cd ${prefix}/usr/lib/xen-tools/ && ln -s edgy.d intrepid.d
|
|
||||||
mkdir -p ${prefix}/usr/lib/xen-tools/dapper.d/
|
mkdir -p ${prefix}/usr/lib/xen-tools/dapper.d/
|
||||||
cp -R hooks/dapper/*-* ${prefix}/usr/lib/xen-tools/dapper.d/
|
cp -R hooks/dapper/*-* ${prefix}/usr/lib/xen-tools/dapper.d/
|
||||||
mkdir -p ${prefix}/usr/lib/xen-tools/edgy.d/
|
mkdir -p ${prefix}/usr/lib/xen-tools/edgy.d/
|
||||||
@@ -196,7 +193,6 @@ install: fixup-perms install-bin install-etc install-hooks install-libraries ins
|
|||||||
# Build our manpages via the `pod2man` command.
|
# Build our manpages via the `pod2man` command.
|
||||||
#
|
#
|
||||||
manpages:
|
manpages:
|
||||||
mkdir man
|
|
||||||
cd bin; for i in *-*; do pod2man --release=${VERSION} --official --section=8 $$i ../man/$$i.8; done
|
cd bin; for i in *-*; do pod2man --release=${VERSION} --official --section=8 $$i ../man/$$i.8; done
|
||||||
for i in man/*.8; do gzip --force -9 $$i; done
|
for i in man/*.8; do gzip --force -9 $$i; done
|
||||||
|
|
||||||
@@ -239,7 +235,7 @@ tidy:
|
|||||||
if [ -x /usr/bin/perltidy ]; then \
|
if [ -x /usr/bin/perltidy ]; then \
|
||||||
for i in bin/*-*; do \
|
for i in bin/*-*; do \
|
||||||
echo "tidying $$i"; \
|
echo "tidying $$i"; \
|
||||||
perltidy $$i \
|
perltidy -b -nt -bt=2 -sbt=1 -bl -mbl=3 -sbl -bbs -bbb -anl -lp $$i \
|
||||||
; done \
|
; done \
|
||||||
; fi
|
; fi
|
||||||
|
|
||||||
|
|||||||
@@ -73,8 +73,6 @@ xen-create-image - Easily create new Xen instances with networking and OpenSSH.
|
|||||||
|
|
||||||
--hooks Specify whether to run hooks after the image is created.
|
--hooks Specify whether to run hooks after the image is created.
|
||||||
|
|
||||||
--no-hosts Don't touch /etc/hosts on the dom0.
|
|
||||||
|
|
||||||
--partitions Use a specific partition layout configuration file.
|
--partitions Use a specific partition layout configuration file.
|
||||||
Not supported with the image-dev and swap-dev options.
|
Not supported with the image-dev and swap-dev options.
|
||||||
Parameters fs, size, swap and noswap are ignored when
|
Parameters fs, size, swap and noswap are ignored when
|
||||||
@@ -663,7 +661,7 @@ my $FAIL = 0;
|
|||||||
#
|
#
|
||||||
# Release number.
|
# Release number.
|
||||||
#
|
#
|
||||||
my $RELEASE = '4.1';
|
my $RELEASE = '3.9';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -1338,7 +1336,7 @@ sub parseCommandLineArguments
|
|||||||
#
|
#
|
||||||
# Parse options.
|
# Parse options.
|
||||||
#
|
#
|
||||||
if ( !GetOptions(
|
GetOptions(
|
||||||
|
|
||||||
# Mandatory
|
# Mandatory
|
||||||
"dist=s", \$CONFIG{'dist'},
|
"dist=s", \$CONFIG{'dist'},
|
||||||
@@ -1361,18 +1359,14 @@ sub parseCommandLineArguments
|
|||||||
"image-dev=s", \$install{'image-dev'},
|
"image-dev=s", \$install{'image-dev'},
|
||||||
"swap-dev=s", \$install{'swap-dev'},
|
"swap-dev=s", \$install{'swap-dev'},
|
||||||
|
|
||||||
# Host options
|
|
||||||
"no-hosts", \$CONFIG{'nohosts'},
|
|
||||||
|
|
||||||
# Networking options
|
# Networking options
|
||||||
"dhcp", \$CONFIG{'dhcp'},
|
"dhcp!", \$CONFIG{'dhcp'},
|
||||||
"gateway=s", \$CONFIG{'gateway'},
|
"gateway=s", \$CONFIG{'gateway'},
|
||||||
"hostname=s", \$CONFIG{'hostname'},
|
"hostname=s", \$CONFIG{'hostname'},
|
||||||
"ip=s@", \$CONFIG{'ip'},
|
"ip=s@", \$CONFIG{'ip'},
|
||||||
"mac=s", \$CONFIG{'mac'},
|
"mac=s", \$CONFIG{'mac'},
|
||||||
"netmask=s", \$CONFIG{'netmask'},
|
"netmask=s", \$CONFIG{'netmask'},
|
||||||
"broadcast=s", \$CONFIG{'broadcast'},
|
"broadcast=s", \$CONFIG{'broadcast'},
|
||||||
"vifname=s", \$CONFIG{'vifname'},
|
|
||||||
"p2p=s", \$CONFIG{'p2p'},
|
"p2p=s", \$CONFIG{'p2p'},
|
||||||
|
|
||||||
# Exclusive
|
# Exclusive
|
||||||
@@ -1383,38 +1377,34 @@ sub parseCommandLineArguments
|
|||||||
"install-source=s", \$CONFIG{'install-source'},
|
"install-source=s", \$CONFIG{'install-source'},
|
||||||
|
|
||||||
# Misc. options
|
# Misc. options
|
||||||
"accounts", \$CONFIG{'accounts'},
|
"accounts!", \$CONFIG{'accounts'},
|
||||||
"admins=s", \$CONFIG{'admins'},
|
"admins=s", \$CONFIG{'admins'},
|
||||||
"arch=s", \$CONFIG{'arch'},
|
"arch=s", \$CONFIG{'arch'},
|
||||||
"fs=s", \$CONFIG{'fs'},
|
"fs=s", \$CONFIG{'fs'},
|
||||||
"boot", \$CONFIG{'boot'},
|
"boot!", \$CONFIG{'boot'},
|
||||||
"cache=s", \$CONFIG{'cache'},
|
"cache=s", \$CONFIG{'cache'},
|
||||||
"config=s", \$CONFIG{'config'},
|
"config=s", \$CONFIG{'config'},
|
||||||
"ide", \$CONFIG{'ide'},
|
"ide!", \$CONFIG{'ide'},
|
||||||
"install=i", \$CONFIG{'install'},
|
"install=i", \$CONFIG{'install'},
|
||||||
"hooks=i", \$CONFIG{'hooks'},
|
"hooks=i", \$CONFIG{'hooks'},
|
||||||
"pygrub", \$CONFIG{'pygrub'},
|
"passwd!", \$CONFIG{'passwd'},
|
||||||
"passwd", \$CONFIG{'passwd'},
|
|
||||||
"partitions=s", \$CONFIG{'partitions'},
|
"partitions=s", \$CONFIG{'partitions'},
|
||||||
"role=s", \$CONFIG{'role'},
|
"role=s", \$CONFIG{'role'},
|
||||||
"role-args=s", \$CONFIG{'role-args'},
|
"role-args=s", \$CONFIG{'role-args'},
|
||||||
"roledir=s", \$CONFIG{'roledir'},
|
"roledir=s", \$CONFIG{'roledir'},
|
||||||
"force", \$CONFIG{'force'},
|
"force!", \$CONFIG{'force'},
|
||||||
"keep", \$CONFIG{'keep'},
|
"keep!", \$CONFIG{'keep'},
|
||||||
"template=s", \$CONFIG{'template'},
|
"template=s", \$CONFIG{'template'},
|
||||||
"output=s", \$CONFIG{'output'},
|
"output=s", \$CONFIG{'output'},
|
||||||
"extension=s", \$CONFIG{'extension'},
|
"extension=s", \$CONFIG{'extension'},
|
||||||
|
|
||||||
# Help options
|
# Help options
|
||||||
"debug", \$CONFIG{'debug'},
|
"debug!", \$CONFIG{'debug'},
|
||||||
"help", \$HELP,
|
"help", \$HELP,
|
||||||
"manual", \$MANUAL,
|
"manual", \$MANUAL,
|
||||||
"verbose", \$CONFIG{'verbose'},
|
"verbose", \$CONFIG{'verbose'},
|
||||||
"version", \$VERSION
|
"version", \$VERSION
|
||||||
) )
|
);
|
||||||
{
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
pod2usage(1) if $HELP;
|
pod2usage(1) if $HELP;
|
||||||
pod2usage( -verbose => 2 ) if $MANUAL;
|
pod2usage( -verbose => 2 ) if $MANUAL;
|
||||||
@@ -1819,17 +1809,9 @@ EOF
|
|||||||
$CONFIG{'output'} . "/" . $CONFIG{'hostname'} . $CONFIG{'extension'};
|
$CONFIG{'output'} . "/" . $CONFIG{'hostname'} . $CONFIG{'extension'};
|
||||||
if ( -e $cfg )
|
if ( -e $cfg )
|
||||||
{
|
{
|
||||||
if ( $CONFIG{'force'} )
|
print "Configuration file already exists; $cfg\n";
|
||||||
{
|
print "Aborting\n";
|
||||||
$CONFIG{'verbose'} && print "Removing existing file: $cfg\n";
|
exit 127;
|
||||||
unlink( $cfg );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
print "Configuration file already exists; $cfg\n";
|
|
||||||
print "Aborting\n";
|
|
||||||
exit 127;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2273,7 +2255,6 @@ sub showSummary
|
|||||||
logprint("Partitions : ");
|
logprint("Partitions : ");
|
||||||
foreach my $partition (@PARTITIONS)
|
foreach my $partition (@PARTITIONS)
|
||||||
{
|
{
|
||||||
next if ( !$partition );
|
|
||||||
$info = sprintf( '%-15s %-5s (%s)',
|
$info = sprintf( '%-15s %-5s (%s)',
|
||||||
( $partition->{'type'} ne 'swap' )
|
( $partition->{'type'} ne 'swap' )
|
||||||
? $partition->{'mountpoint'}
|
? $partition->{'mountpoint'}
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ $CONFIG{'template'} = '/etc/xen-tools/xm-nfs.tmpl';
|
|||||||
#
|
#
|
||||||
# Release number.
|
# Release number.
|
||||||
#
|
#
|
||||||
my $RELEASE = '4.1';
|
my $RELEASE = '3.9';
|
||||||
|
|
||||||
|
|
||||||
# store version number away.
|
# store version number away.
|
||||||
|
|||||||
@@ -169,7 +169,7 @@ my %CONFIG;
|
|||||||
#
|
#
|
||||||
# Release number.
|
# Release number.
|
||||||
#
|
#
|
||||||
my $RELEASE = '4.1';
|
my $RELEASE = '3.9';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -102,7 +102,7 @@ $CONFIG{'prefix'} = "/etc/xen";
|
|||||||
#
|
#
|
||||||
# Release number.
|
# Release number.
|
||||||
#
|
#
|
||||||
my $RELEASE = '4.1';
|
my $RELEASE = '3.9';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -116,7 +116,7 @@ my %CONFIG;
|
|||||||
#
|
#
|
||||||
# Release number.
|
# Release number.
|
||||||
#
|
#
|
||||||
my $RELEASE = '4.1';
|
my $RELEASE = '3.9';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ my %CONFIG;
|
|||||||
#
|
#
|
||||||
# Release number.
|
# Release number.
|
||||||
#
|
#
|
||||||
my $RELEASE = '4.1';
|
my $RELEASE = '3.9';
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -156,7 +156,7 @@ $CONFIG{'template'} = '/etc/xen-tools/xm.tmpl';
|
|||||||
#
|
#
|
||||||
# Release number.
|
# Release number.
|
||||||
#
|
#
|
||||||
my $RELEASE = '4.1';
|
my $RELEASE = '3.9';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ my %CONFIG;
|
|||||||
#
|
#
|
||||||
# Release number.
|
# Release number.
|
||||||
#
|
#
|
||||||
my $RELEASE = '4.1';
|
my $RELEASE = '3.9';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ my %CONFIG;
|
|||||||
#
|
#
|
||||||
# Release number.
|
# Release number.
|
||||||
#
|
#
|
||||||
my $RELEASE = '4.1';
|
my $RELEASE = '3.9';
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
11
debian/changelog
vendored
11
debian/changelog
vendored
@@ -1,14 +1,3 @@
|
|||||||
xen-tools (4.1-1) unstable; urgency=low
|
|
||||||
|
|
||||||
- New command line argument '--no-hosts' to avoid touching /etc/hosts
|
|
||||||
on dom0
|
|
||||||
- New command line argument '--pygrub' to setup a guest for pygrub use.
|
|
||||||
- Generated configuration file should work for --image-dev + --swap-dev
|
|
||||||
again.
|
|
||||||
- Always use /dev/pts for new images.
|
|
||||||
|
|
||||||
-- Steve Kemp <skx@debian.org> Sun, 23 Nov 2008 13:06:01 +0000
|
|
||||||
|
|
||||||
xen-tools (3.9-6) unstable; urgency=low
|
xen-tools (3.9-6) unstable; urgency=low
|
||||||
|
|
||||||
- Allow command line flags to be unset.
|
- Allow command line flags to be unset.
|
||||||
|
|||||||
0
debian/examples/setup-kernel-initrd
vendored
Executable file → Normal file
0
debian/examples/setup-kernel-initrd
vendored
Executable file → Normal file
0
debian/examples/update-modules
vendored
Executable file → Normal file
0
debian/examples/update-modules
vendored
Executable file → Normal file
0
debian/preinst
vendored
Executable file → Normal file
0
debian/preinst
vendored
Executable file → Normal file
77
etc/xm.tmpl
77
etc/xm.tmpl
@@ -6,76 +6,37 @@
|
|||||||
#
|
#
|
||||||
# Kernel + memory size
|
# Kernel + memory size
|
||||||
#
|
#
|
||||||
{ if ( ( $kernel ) && ( !defined($pygrub)) )
|
{ if ( $kernel )
|
||||||
{
|
{
|
||||||
$OUT.= "kernel = '$kernel'";
|
$OUT.= "kernel = '$kernel'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{ if ( ( $initrd ) && ( !defined($pygrub)) )
|
{ if ( $initrd )
|
||||||
{
|
{
|
||||||
$OUT.= "ramdisk = '$initrd'";
|
$OUT.= "ramdisk = '$initrd'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
{
|
|
||||||
if ( $pygrub )
|
|
||||||
{
|
|
||||||
$OUT .= "bootloader = '/usr/bin/pygrub'\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
memory = '{$memory}'
|
memory = '{$memory}'
|
||||||
|
|
||||||
#
|
#
|
||||||
# Disk device(s).
|
# Disk device(s).
|
||||||
#
|
#
|
||||||
{
|
{
|
||||||
if ( !defined($image_vbd ) )
|
for ( my $i = 0; $i <= $#PARTITIONS; $i++ )
|
||||||
{
|
{
|
||||||
for ( my $i = $#PARTITIONS; $i >= 0 ; $i-- )
|
|
||||||
{
|
|
||||||
if ( $PARTITIONS[$i]{'mountpoint'} eq '/' )
|
if ( $PARTITIONS[$i]{'mountpoint'} eq '/' )
|
||||||
{
|
{
|
||||||
$OUT .= "root = '/dev/$device" . ($i + 1) . " ro'\n";
|
$OUT .= "root = '/dev/$device" . ($i + 1) . " ro'\n";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
$OUT .= "disk = [\n";
|
|
||||||
for ( my $i = $#PARTITIONS; $i >= 0 ; $i-- )
|
|
||||||
{
|
|
||||||
$OUT .= " '$PARTITIONS[$i]{'imagetype'}$PARTITIONS[$i]{'image'},$device" . ( $i + 1 ) .",w',\n";
|
|
||||||
}
|
|
||||||
$OUT .= " ]\n";
|
|
||||||
}
|
}
|
||||||
|
$OUT .= "disk = [\n";
|
||||||
|
for ( my $i = 0; $i <= $#PARTITIONS; $i++ )
|
||||||
|
{
|
||||||
|
$OUT .= " '$PARTITIONS[$i]{'imagetype'}$PARTITIONS[$i]{'image'},$device" . ( $i + 1 ) .",w',\n";
|
||||||
|
}
|
||||||
|
$OUT .= " ]\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
#
|
|
||||||
# Physical volumes
|
|
||||||
#
|
|
||||||
{
|
|
||||||
if ( ( $swap_vbd ) && ( $image_vbd ) )
|
|
||||||
{
|
|
||||||
$OUT .= "root = '/dev/$device" . "2 ro'\n";
|
|
||||||
|
|
||||||
$OUT .= "disk = [ ";
|
|
||||||
|
|
||||||
if ( $image_vbd )
|
|
||||||
{
|
|
||||||
$OUT .= "'$image_vbd," . $device . "2,w'";
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if ( $swap_vbd )
|
|
||||||
{
|
|
||||||
if ( $image_vbd )
|
|
||||||
{
|
|
||||||
$OUT .= ",";
|
|
||||||
}
|
|
||||||
|
|
||||||
$OUT .= "'$swap_vbd," . $device . "1,w'";
|
|
||||||
}
|
|
||||||
$OUT .= " ]\n";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Hostname
|
# Hostname
|
||||||
#
|
#
|
||||||
@@ -91,12 +52,12 @@ name = '{$hostname}'
|
|||||||
# Setup the mac address, if present.
|
# Setup the mac address, if present.
|
||||||
my $m = '';
|
my $m = '';
|
||||||
if ( $mac )
|
if ( $mac )
|
||||||
{
|
{
|
||||||
$m = "mac=$mac"
|
$m = "mac=$mac"
|
||||||
}
|
}
|
||||||
|
|
||||||
$OUT .= "vif = [ '$m' ]";
|
$OUT .= "vif = [ '$m' ]";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
#
|
#
|
||||||
@@ -104,20 +65,12 @@ name = '{$hostname}'
|
|||||||
#
|
#
|
||||||
my $m = '';
|
my $m = '';
|
||||||
if ( $mac )
|
if ( $mac )
|
||||||
{
|
{
|
||||||
$m = ",mac=$mac"
|
$m = ",mac=$mac"
|
||||||
}
|
}
|
||||||
|
|
||||||
my $vn = '';
|
$OUT .= "vif = [ 'ip=$ip1";
|
||||||
if ( $vifname )
|
$OUT .= "$m' ]";
|
||||||
{
|
|
||||||
$vn = ",vifname=$vifname";
|
|
||||||
}
|
|
||||||
|
|
||||||
$OUT .= "vif = [ 'ip=$ip1";
|
|
||||||
$OUT .= "$m";
|
|
||||||
$OUT .= "$vn";
|
|
||||||
$OUT .= "' ]";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
0
hooks/centos-4/15-setup-arch
Executable file → Normal file
0
hooks/centos-4/15-setup-arch
Executable file → Normal file
@@ -89,27 +89,23 @@ if [ -z "${dhcp}" ]; then
|
|||||||
#
|
#
|
||||||
name=`echo ${hostname} | awk -F. '{print $1}'`
|
name=`echo ${hostname} | awk -F. '{print $1}'`
|
||||||
|
|
||||||
if [ -z "${nohosts}" ]; then
|
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||||
|
|
||||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||||
|
|
||||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# If we've updated the /etc/hosts file on the host machine
|
||||||
|
# and there is an installation of dnsmasq installed then
|
||||||
|
# reload it.
|
||||||
|
#
|
||||||
|
# This will let the local LAN clients lookup the new address.
|
||||||
|
#
|
||||||
|
if [ -x /usr/sbin/dnsmasq ] ; then
|
||||||
|
if [ -e /var/run/dnsmasq.pid ]; then
|
||||||
|
|
||||||
#
|
logMessage Allowing DNSMasq to restart.
|
||||||
# If we've updated the /etc/hosts file on the host machine
|
kill -HUP `cat /var/run/dnsmasq.pid`
|
||||||
# and there is an installation of dnsmasq installed then
|
|
||||||
# reload it.
|
|
||||||
#
|
|
||||||
# This will let the local LAN clients lookup the new address.
|
|
||||||
#
|
|
||||||
if [ -x /usr/sbin/dnsmasq ] ; then
|
|
||||||
if [ -e /var/run/dnsmasq.pid ]; then
|
|
||||||
|
|
||||||
logMessage Allowing DNSMasq to restart.
|
|
||||||
kill -HUP `cat /var/run/dnsmasq.pid`
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ cat <<E_O_FSTAB > ${prefix}/etc/fstab
|
|||||||
#
|
#
|
||||||
# <file system> <mount point> <type> <options> <dump> <pass>
|
# <file system> <mount point> <type> <options> <dump> <pass>
|
||||||
proc /proc proc defaults 0 0
|
proc /proc proc defaults 0 0
|
||||||
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
|
|
||||||
E_O_FSTAB
|
E_O_FSTAB
|
||||||
for part in `seq 1 ${NUMPARTITIONS}`; do
|
for part in `seq 1 ${NUMPARTITIONS}`; do
|
||||||
eval "PARTITION=\"\${PARTITION${part}}\""
|
eval "PARTITION=\"\${PARTITION${part}}\""
|
||||||
@@ -76,7 +75,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
|||||||
x=$(( $x+1 ))
|
x=$(( $x+1 ))
|
||||||
done
|
done
|
||||||
IFS="${OLDIFS}"
|
IFS="${OLDIFS}"
|
||||||
|
|
||||||
case "${partdata2}" in
|
case "${partdata2}" in
|
||||||
xfs)
|
xfs)
|
||||||
has_xfs=1
|
has_xfs=1
|
||||||
@@ -85,7 +84,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
|||||||
has_reiserfs=1
|
has_reiserfs=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "${partdata2}" = "swap" ]; then
|
if [ "${partdata2}" = "swap" ]; then
|
||||||
echo "/dev/${device}${part} none swap sw 0 0" >> ${prefix}/etc/fstab
|
echo "/dev/${device}${part} none swap sw 0 0" >> ${prefix}/etc/fstab
|
||||||
else
|
else
|
||||||
|
|||||||
0
hooks/centos-5/15-setup-arch
Executable file → Normal file
0
hooks/centos-5/15-setup-arch
Executable file → Normal file
@@ -89,24 +89,22 @@ if [ -z "${dhcp}" ]; then
|
|||||||
#
|
#
|
||||||
name=`echo ${hostname} | awk -F. '{print $1}'`
|
name=`echo ${hostname} | awk -F. '{print $1}'`
|
||||||
|
|
||||||
if [ -z "${nohosts}" ]; then
|
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||||
|
|
||||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# If we've updated the /etc/hosts file on the host machine
|
# If we've updated the /etc/hosts file on the host machine
|
||||||
# and there is an installation of dnsmasq installed then
|
# and there is an installation of dnsmasq installed then
|
||||||
# reload it.
|
# reload it.
|
||||||
#
|
#
|
||||||
# This will let the local LAN clients lookup the new address.
|
# This will let the local LAN clients lookup the new address.
|
||||||
#
|
#
|
||||||
if [ -x /usr/sbin/dnsmasq ] ; then
|
if [ -x /usr/sbin/dnsmasq ] ; then
|
||||||
if [ -e /var/run/dnsmasq.pid ]; then
|
if [ -e /var/run/dnsmasq.pid ]; then
|
||||||
|
|
||||||
logMessage Allowing DNSMasq to restart.
|
logMessage Allowing DNSMasq to restart.
|
||||||
kill -HUP `cat /var/run/dnsmasq.pid`
|
kill -HUP `cat /var/run/dnsmasq.pid`
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -89,25 +89,24 @@ if [ -z "${dhcp}" ]; then
|
|||||||
#
|
#
|
||||||
name=`echo ${hostname} | awk -F. '{print $1}'`
|
name=`echo ${hostname} | awk -F. '{print $1}'`
|
||||||
|
|
||||||
if [ -z "${nohosts}" ]; then
|
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||||
|
|
||||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# If we've updated the /etc/hosts file on the host machine
|
# If we've updated the /etc/hosts file on the host machine
|
||||||
# and there is an installation of dnsmasq installed then
|
# and there is an installation of dnsmasq installed then
|
||||||
# reload it.
|
# reload it.
|
||||||
#
|
#
|
||||||
# This will let the local LAN clients lookup the new address.
|
# This will let the local LAN clients lookup the new address.
|
||||||
#
|
#
|
||||||
if [ -x /usr/sbin/dnsmasq ] ; then
|
if [ -x /usr/sbin/dnsmasq ] ; then
|
||||||
if [ -e /var/run/dnsmasq.pid ]; then
|
if [ -e /var/run/dnsmasq.pid ]; then
|
||||||
|
|
||||||
logMessage Allowing DNSMasq to restart.
|
logMessage Allowing DNSMasq to restart.
|
||||||
|
|
||||||
kill -HUP `cat /var/run/dnsmasq.pid`
|
kill -HUP `cat /var/run/dnsmasq.pid`
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ cat <<E_O_FSTAB > ${prefix}/etc/fstab
|
|||||||
#
|
#
|
||||||
# <file system> <mount point> <type> <options> <dump> <pass>
|
# <file system> <mount point> <type> <options> <dump> <pass>
|
||||||
proc /proc proc defaults 0 0
|
proc /proc proc defaults 0 0
|
||||||
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
|
|
||||||
E_O_FSTAB
|
E_O_FSTAB
|
||||||
for part in `seq 1 ${NUMPARTITIONS}`; do
|
for part in `seq 1 ${NUMPARTITIONS}`; do
|
||||||
eval "PARTITION=\"\${PARTITION${part}}\""
|
eval "PARTITION=\"\${PARTITION${part}}\""
|
||||||
@@ -73,7 +72,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
|||||||
x=$(( $x+1 ))
|
x=$(( $x+1 ))
|
||||||
done
|
done
|
||||||
IFS="${OLDIFS}"
|
IFS="${OLDIFS}"
|
||||||
|
|
||||||
case "${partdata2}" in
|
case "${partdata2}" in
|
||||||
xfs)
|
xfs)
|
||||||
has_xfs=1
|
has_xfs=1
|
||||||
@@ -82,7 +81,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
|||||||
has_reiserfs=1
|
has_reiserfs=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "${partdata2}" = "swap" ]; then
|
if [ "${partdata2}" = "swap" ]; then
|
||||||
echo "/dev/${device}${part} none swap sw 0 0" >> ${prefix}/etc/fstab
|
echo "/dev/${device}${part} none swap sw 0 0" >> ${prefix}/etc/fstab
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -89,24 +89,23 @@ if [ -z "${dhcp}" ]; then
|
|||||||
#
|
#
|
||||||
name=`echo ${hostname} | awk -F. '{print $1}'`
|
name=`echo ${hostname} | awk -F. '{print $1}'`
|
||||||
|
|
||||||
if [ -z "${nohosts}" ]; then
|
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||||
|
|
||||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# If we've updated the /etc/hosts file on the host machine
|
# If we've updated the /etc/hosts file on the host machine
|
||||||
# and there is an installation of dnsmasq installed then
|
# and there is an installation of dnsmasq installed then
|
||||||
# reload it.
|
# reload it.
|
||||||
#
|
#
|
||||||
# This will let the local LAN clients lookup the new address.
|
# This will let the local LAN clients lookup the new address.
|
||||||
#
|
#
|
||||||
if [ -x /usr/sbin/dnsmasq ] ; then
|
if [ -x /usr/sbin/dnsmasq ] ; then
|
||||||
if [ -e /var/run/dnsmasq.pid ]; then
|
if [ -e /var/run/dnsmasq.pid ]; then
|
||||||
|
|
||||||
logMessage Allowing DNSMasq to restart.
|
logMessage Allowing DNSMasq to restart.
|
||||||
kill -HUP `cat /var/run/dnsmasq.pid`
|
|
||||||
fi
|
kill -HUP `cat /var/run/dnsmasq.pid`
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -60,7 +60,6 @@ cat <<E_O_FSTAB > ${prefix}/etc/fstab
|
|||||||
#
|
#
|
||||||
# <file system> <mount point> <type> <options> <dump> <pass>
|
# <file system> <mount point> <type> <options> <dump> <pass>
|
||||||
proc /proc proc defaults 0 0
|
proc /proc proc defaults 0 0
|
||||||
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
|
|
||||||
E_O_FSTAB
|
E_O_FSTAB
|
||||||
for part in `seq 1 ${NUMPARTITIONS}`; do
|
for part in `seq 1 ${NUMPARTITIONS}`; do
|
||||||
eval "PARTITION=\"\${PARTITION${part}}\""
|
eval "PARTITION=\"\${PARTITION${part}}\""
|
||||||
@@ -72,7 +71,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
|||||||
x=$(( $x+1 ))
|
x=$(( $x+1 ))
|
||||||
done
|
done
|
||||||
IFS="${OLDIFS}"
|
IFS="${OLDIFS}"
|
||||||
|
|
||||||
case "${partdata2}" in
|
case "${partdata2}" in
|
||||||
xfs)
|
xfs)
|
||||||
has_xfs=1
|
has_xfs=1
|
||||||
@@ -81,7 +80,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
|||||||
has_reiserfs=1
|
has_reiserfs=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "${partdata2}" = "swap" ]; then
|
if [ "${partdata2}" = "swap" ]; then
|
||||||
echo "/dev/${device}${part} none swap sw 0 0" >> ${prefix}/etc/fstab
|
echo "/dev/${device}${part} none swap sw 0 0" >> ${prefix}/etc/fstab
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -41,8 +41,7 @@ cp /etc/resolv.conf ${prefix}/etc
|
|||||||
#
|
#
|
||||||
# Process any of the present apt-conf setup lines.
|
# Process any of the present apt-conf setup lines.
|
||||||
#
|
#
|
||||||
for i in /etc/apt/apt.conf $(run-parts --list /etc/apt/apt.conf.d) ; do
|
for i in /etc/apt/apt.conf /etc/apt/apt.conf.d/* ; do
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# If the file exists. (Need this in case the literal glob fails.)
|
# If the file exists. (Need this in case the literal glob fails.)
|
||||||
@@ -53,8 +52,7 @@ for i in /etc/apt/apt.conf $(run-parts --list /etc/apt/apt.conf.d) ; do
|
|||||||
# Save the matching line(s) to the proxy guess file.
|
# Save the matching line(s) to the proxy guess file.
|
||||||
#
|
#
|
||||||
logMessage The use of a proxy detected.
|
logMessage The use of a proxy detected.
|
||||||
|
grep -i HTTP::Proxy $i >> ${prefix}/etc/apt/apt.conf.d/proxy-guess
|
||||||
grep -v '^//' $i | grep -i HTTP::Proxy >>${prefix}/etc/apt/apt.conf.d/proxy-guess
|
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|||||||
@@ -42,10 +42,7 @@ if [ ! -z "${serial_device}" ]; then
|
|||||||
|
|
||||||
# replace existing device.
|
# replace existing device.
|
||||||
mv ${prefix}/etc/event.d/tty1 ${prefix}/etc/event.d/${serial_device}
|
mv ${prefix}/etc/event.d/tty1 ${prefix}/etc/event.d/${serial_device}
|
||||||
sed -i -e s/tty1/${serial_device}/ ${prefix}/etc/event.d/${serial_device}
|
sed -i -e s/tty1/${serial_device}/ ${prefix}/etc/inittab
|
||||||
[ -f ${prefix}/etc/inittab ] && sed -i -e s/tty1/${serial_device}/ ${prefix}/etc/inittab
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# make sure that it is allowed to login.
|
# make sure that it is allowed to login.
|
||||||
echo $serial_device >> ${prefix}/etc/securetty
|
echo $serial_device >> ${prefix}/etc/securetty
|
||||||
|
|||||||
@@ -88,24 +88,23 @@ if [ -z "${dhcp}" ]; then
|
|||||||
#
|
#
|
||||||
name=`echo ${hostname} | awk -F. '{print $1}'`
|
name=`echo ${hostname} | awk -F. '{print $1}'`
|
||||||
|
|
||||||
if [ -z "${nohosts}" ]; then
|
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||||
|
|
||||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# If we've updated the /etc/hosts file on the host machine
|
# If we've updated the /etc/hosts file on the host machine
|
||||||
# and there is an installation of dnsmasq installed then
|
# and there is an installation of dnsmasq installed then
|
||||||
# reload it.
|
# reload it.
|
||||||
#
|
#
|
||||||
# This will let the local LAN clients lookup the new address.
|
# This will let the local LAN clients lookup the new address.
|
||||||
#
|
#
|
||||||
if [ -x /usr/sbin/dnsmasq ] ; then
|
if [ -x /usr/sbin/dnsmasq ] ; then
|
||||||
if [ -e /var/run/dnsmasq.pid ]; then
|
if [ -e /var/run/dnsmasq.pid ]; then
|
||||||
|
|
||||||
logMessage Allowing DNSMasq to restart.
|
logMessage Allowing DNSMasq to restart.
|
||||||
kill -HUP `cat /var/run/dnsmasq.pid`
|
|
||||||
fi
|
kill -HUP `cat /var/run/dnsmasq.pid`
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ cat <<E_O_FSTAB > ${prefix}/etc/fstab
|
|||||||
#
|
#
|
||||||
# <file system> <mount point> <type> <options> <dump> <pass>
|
# <file system> <mount point> <type> <options> <dump> <pass>
|
||||||
proc /proc proc defaults 0 0
|
proc /proc proc defaults 0 0
|
||||||
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
|
|
||||||
E_O_FSTAB
|
E_O_FSTAB
|
||||||
for part in `seq 1 ${NUMPARTITIONS}`; do
|
for part in `seq 1 ${NUMPARTITIONS}`; do
|
||||||
eval "PARTITION=\"\${PARTITION${part}}\""
|
eval "PARTITION=\"\${PARTITION${part}}\""
|
||||||
@@ -73,7 +72,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
|||||||
x=$(( $x+1 ))
|
x=$(( $x+1 ))
|
||||||
done
|
done
|
||||||
IFS="${OLDIFS}"
|
IFS="${OLDIFS}"
|
||||||
|
|
||||||
case "${partdata2}" in
|
case "${partdata2}" in
|
||||||
xfs)
|
xfs)
|
||||||
has_xfs=1
|
has_xfs=1
|
||||||
@@ -82,7 +81,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
|||||||
has_reiserfs=1
|
has_reiserfs=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "${partdata2}" = "swap" ]; then
|
if [ "${partdata2}" = "swap" ]; then
|
||||||
echo "/dev/${device}${part} none swap sw 0 0" >> ${prefix}/etc/fstab
|
echo "/dev/${device}${part} none swap sw 0 0" >> ${prefix}/etc/fstab
|
||||||
else
|
else
|
||||||
|
|||||||
0
hooks/fedora-core-6/15-setup-arch
Executable file → Normal file
0
hooks/fedora-core-6/15-setup-arch
Executable file → Normal file
@@ -89,25 +89,23 @@ if [ -z "${dhcp}" ]; then
|
|||||||
#
|
#
|
||||||
name=`echo ${hostname} | awk -F. '{print $1}'`
|
name=`echo ${hostname} | awk -F. '{print $1}'`
|
||||||
|
|
||||||
if [ -z "${nohosts}" ]; then
|
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||||
|
|
||||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# If we've updated the /etc/hosts file on the host machine
|
# If we've updated the /etc/hosts file on the host machine
|
||||||
# and there is an installation of dnsmasq installed then
|
# and there is an installation of dnsmasq installed then
|
||||||
# reload it.
|
# reload it.
|
||||||
#
|
#
|
||||||
# This will let the local LAN clients lookup the new address.
|
# This will let the local LAN clients lookup the new address.
|
||||||
#
|
#
|
||||||
if [ -x /usr/sbin/dnsmasq ] ; then
|
if [ -x /usr/sbin/dnsmasq ] ; then
|
||||||
if [ -e /var/run/dnsmasq.pid ]; then
|
if [ -e /var/run/dnsmasq.pid ]; then
|
||||||
|
|
||||||
logMessage Allowing DNSMasq to restart.
|
logMessage Allowing DNSMasq to restart.
|
||||||
kill -HUP `cat /var/run/dnsmasq.pid`
|
kill -HUP `cat /var/run/dnsmasq.pid`
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -96,24 +96,23 @@ if [ -z "${dhcp}" ]; then
|
|||||||
#
|
#
|
||||||
name=`echo ${hostname} | awk -F. '{print $1}'`
|
name=`echo ${hostname} | awk -F. '{print $1}'`
|
||||||
|
|
||||||
if [ -z "${nohosts}" ]; then
|
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||||
|
|
||||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# If we've updated the /etc/hosts file on the host machine
|
# If we've updated the /etc/hosts file on the host machine
|
||||||
# and there is an installation of dnsmasq installed then
|
# and there is an installation of dnsmasq installed then
|
||||||
# reload it.
|
# reload it.
|
||||||
#
|
#
|
||||||
# This will let the local LAN clients lookup the new address.
|
# This will let the local LAN clients lookup the new address.
|
||||||
#
|
#
|
||||||
if [ -x /usr/sbin/dnsmasq ] ; then
|
if [ -x /usr/sbin/dnsmasq ] ; then
|
||||||
if [ -e /var/run/dnsmasq.pid ]; then
|
if [ -e /var/run/dnsmasq.pid ]; then
|
||||||
|
|
||||||
logMessage Allowing DNSMasq to restart.
|
logMessage Allowing DNSMasq to restart.
|
||||||
kill -HUP `cat /var/run/dnsmasq.pid`
|
|
||||||
fi
|
kill -HUP `cat /var/run/dnsmasq.pid`
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ cat <<E_O_FSTAB > ${prefix}/etc/fstab
|
|||||||
#
|
#
|
||||||
# <file system> <mount point> <type> <options> <dump> <pass>
|
# <file system> <mount point> <type> <options> <dump> <pass>
|
||||||
proc /proc proc defaults 0 0
|
proc /proc proc defaults 0 0
|
||||||
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
|
|
||||||
E_O_FSTAB
|
E_O_FSTAB
|
||||||
for part in `seq 1 ${NUMPARTITIONS}`; do
|
for part in `seq 1 ${NUMPARTITIONS}`; do
|
||||||
eval "PARTITION=\"\${PARTITION${part}}\""
|
eval "PARTITION=\"\${PARTITION${part}}\""
|
||||||
@@ -73,7 +72,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
|||||||
x=$(( $x+1 ))
|
x=$(( $x+1 ))
|
||||||
done
|
done
|
||||||
IFS="${OLDIFS}"
|
IFS="${OLDIFS}"
|
||||||
|
|
||||||
case "${partdata2}" in
|
case "${partdata2}" in
|
||||||
xfs)
|
xfs)
|
||||||
has_xfs=1
|
has_xfs=1
|
||||||
@@ -82,7 +81,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
|||||||
has_reiserfs=1
|
has_reiserfs=1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ "${partdata2}" = "swap" ]; then
|
if [ "${partdata2}" = "swap" ]; then
|
||||||
echo "/dev/${device}${part} none swap sw 0 0" >> ${prefix}/etc/fstab
|
echo "/dev/${device}${part} none swap sw 0 0" >> ${prefix}/etc/fstab
|
||||||
else
|
else
|
||||||
|
|||||||
41
roles/puppet
41
roles/puppet
@@ -1,41 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# This role installs Puppet upon the new guest system.
|
|
||||||
#
|
|
||||||
# It must make sure that the server is not running before it exits
|
|
||||||
# otherwise the temporary mounted directory will not be unmountable.
|
|
||||||
#
|
|
||||||
|
|
||||||
prefix=$1
|
|
||||||
|
|
||||||
#
|
|
||||||
# Source our common functions - this will let us install a Debian package.
|
|
||||||
#
|
|
||||||
if [ -e /usr/lib/xen-tools/common.sh ]; then
|
|
||||||
. /usr/lib/xen-tools/common.sh
|
|
||||||
else
|
|
||||||
echo "Installation problem"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#
|
|
||||||
# Log our start
|
|
||||||
#
|
|
||||||
logMessage Script $0 starting
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Install ssh
|
|
||||||
#
|
|
||||||
installDebianPackage ${prefix} puppet
|
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# Make sure sshd isn't running, this will cause our unmounting of the
|
|
||||||
# disk image to fail..
|
|
||||||
#
|
|
||||||
chroot ${prefix} /etc/init.d/puppet stop
|
|
||||||
|
|
||||||
#
|
|
||||||
# Log our finish
|
|
||||||
#
|
|
||||||
logMessage Script $0 finished
|
|
||||||
0
t/quoted-strings.t
Executable file → Normal file
0
t/quoted-strings.t
Executable file → Normal file
Reference in New Issue
Block a user