Compare commits
5 Commits
debian-3.9
...
skx-debian
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ff14a400e | ||
|
|
cb77db18b9 | ||
|
|
8be8f39add | ||
|
|
be30692061 | ||
|
|
7a6c7f17c9 |
4
.hgignore
Normal file
4
.hgignore
Normal file
@@ -0,0 +1,4 @@
|
||||
(^|/)CVS($|/)
|
||||
(^|/)\.hg($|/)
|
||||
(^|/)\.hgtags($|/)
|
||||
ChangeLog
|
||||
@@ -1360,7 +1360,7 @@ sub parseCommandLineArguments
|
||||
"swap-dev=s", \$install{'swap-dev'},
|
||||
|
||||
# Networking options
|
||||
"dhcp!", \$CONFIG{'dhcp'},
|
||||
"dhcp", \$CONFIG{'dhcp'},
|
||||
"gateway=s", \$CONFIG{'gateway'},
|
||||
"hostname=s", \$CONFIG{'hostname'},
|
||||
"ip=s@", \$CONFIG{'ip'},
|
||||
@@ -1377,29 +1377,29 @@ sub parseCommandLineArguments
|
||||
"install-source=s", \$CONFIG{'install-source'},
|
||||
|
||||
# Misc. options
|
||||
"accounts!", \$CONFIG{'accounts'},
|
||||
"accounts", \$CONFIG{'accounts'},
|
||||
"admins=s", \$CONFIG{'admins'},
|
||||
"arch=s", \$CONFIG{'arch'},
|
||||
"fs=s", \$CONFIG{'fs'},
|
||||
"boot!", \$CONFIG{'boot'},
|
||||
"boot", \$CONFIG{'boot'},
|
||||
"cache=s", \$CONFIG{'cache'},
|
||||
"config=s", \$CONFIG{'config'},
|
||||
"ide!", \$CONFIG{'ide'},
|
||||
"ide", \$CONFIG{'ide'},
|
||||
"install=i", \$CONFIG{'install'},
|
||||
"hooks=i", \$CONFIG{'hooks'},
|
||||
"passwd!", \$CONFIG{'passwd'},
|
||||
"passwd", \$CONFIG{'passwd'},
|
||||
"partitions=s", \$CONFIG{'partitions'},
|
||||
"role=s", \$CONFIG{'role'},
|
||||
"role-args=s", \$CONFIG{'role-args'},
|
||||
"roledir=s", \$CONFIG{'roledir'},
|
||||
"force!", \$CONFIG{'force'},
|
||||
"keep!", \$CONFIG{'keep'},
|
||||
"force", \$CONFIG{'force'},
|
||||
"keep", \$CONFIG{'keep'},
|
||||
"template=s", \$CONFIG{'template'},
|
||||
"output=s", \$CONFIG{'output'},
|
||||
"extension=s", \$CONFIG{'extension'},
|
||||
|
||||
# Help options
|
||||
"debug!", \$CONFIG{'debug'},
|
||||
"debug", \$CONFIG{'debug'},
|
||||
"help", \$HELP,
|
||||
"manual", \$MANUAL,
|
||||
"verbose", \$CONFIG{'verbose'},
|
||||
@@ -1802,18 +1802,6 @@ EOF
|
||||
exit 127;
|
||||
}
|
||||
|
||||
#
|
||||
# Already present?
|
||||
#
|
||||
my $cfg =
|
||||
$CONFIG{'output'} . "/" . $CONFIG{'hostname'} . $CONFIG{'extension'};
|
||||
if ( -e $cfg )
|
||||
{
|
||||
print "Configuration file already exists; $cfg\n";
|
||||
print "Aborting\n";
|
||||
exit 127;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -2122,7 +2110,9 @@ EOF
|
||||
# This makes it easy to mount parent folders first
|
||||
# (e.g. /var before /var/tmp)
|
||||
#
|
||||
@PARTITIONS = sort { length $a->{'mountpoint'} <=> length $b->{'mountpoint'} } @PARTITIONS;
|
||||
@PARTITIONS =
|
||||
sort { length $a->{'mountpoint'} cmp length $b->{'mountpoint'} }
|
||||
@PARTITIONS;
|
||||
}
|
||||
|
||||
|
||||
|
||||
28
debian/changelog
vendored
28
debian/changelog
vendored
@@ -1,31 +1,3 @@
|
||||
xen-tools (3.9-6) unstable; urgency=low
|
||||
|
||||
- Allow command line flags to be unset.
|
||||
Thanks to Ruud Koolen for the patch.
|
||||
(Closes: #484338)
|
||||
|
||||
-- Steve Kemp <skx@debian.org> Tue, 14 Oct 2008 22:00:22 +0000
|
||||
|
||||
xen-tools (3.9-5) unstable; urgency=medium
|
||||
|
||||
- Record the ARCH for RPM-based distros.
|
||||
(Closes: #475125)
|
||||
- Abort if the generated configuration file already exists.
|
||||
(Closes: #499475)
|
||||
|
||||
-- Steve Kemp <skx@debian.org> Mon, 13 Oct 2008 19:20:21 +0000
|
||||
|
||||
xen-tools (3.9-4) unstable; urgency=high
|
||||
|
||||
* Changed two defaults in xen-tools.conf to conform
|
||||
to the defaults used by the xen packages:
|
||||
+ serial_device: tty1 -> hvc0
|
||||
+ disk_device: sda -> xvda
|
||||
|
||||
* Priority High because of RC bug. (closes: #499282)
|
||||
|
||||
-- Radu Spineanu <radu@debian.org> Tue, 30 Sep 2008 02:02:21 +0300
|
||||
|
||||
xen-tools (3.9-3) unstable; urgency=medium
|
||||
|
||||
- Ensure that Fedora guests get /dev/pts mounted.
|
||||
|
||||
2
debian/control
vendored
2
debian/control
vendored
@@ -4,7 +4,7 @@ Priority: extra
|
||||
Maintainer: Roland Stigge <stigge@antcom.de>
|
||||
Uploaders: Radu Spineanu <radu@debian.org>, Steve Kemp <skx@debian.org>
|
||||
Build-Depends: debhelper (>= 4.0.0), libtest-pod-perl, libtext-template-perl
|
||||
Standards-Version: 3.8.0
|
||||
Standards-Version: 3.7.3
|
||||
Homepage: http://xen-tools.org/software/xen-tools
|
||||
|
||||
Package: xen-tools
|
||||
|
||||
0
debian/examples/setup-kernel-initrd
vendored
Normal file → Executable file
0
debian/examples/setup-kernel-initrd
vendored
Normal file → Executable file
0
debian/examples/update-modules
vendored
Normal file → Executable file
0
debian/examples/update-modules
vendored
Normal file → Executable file
0
debian/preinst
vendored
Normal file → Executable file
0
debian/preinst
vendored
Normal file → Executable file
@@ -248,17 +248,17 @@ reiser_options = defaults
|
||||
|
||||
|
||||
#
|
||||
# If you're using the lenny or later version of the Xen guest kernel you will
|
||||
# need to make sure that you use 'hvc0' for the guest serial device,
|
||||
# If you're using a newer version of the Xen guest kernel you will
|
||||
# need to make sure that you use 'xvc0' for the guest serial device,
|
||||
# and 'xvdX' instead of 'sdX' for serial devices.
|
||||
#
|
||||
# You may specify the things to use here:
|
||||
#
|
||||
# serial_device = hvc0 #default
|
||||
# serial_device = tty1
|
||||
# serial_device = tty1 #default
|
||||
# serial_device = xvc0
|
||||
#
|
||||
# disk_device = xvda #default
|
||||
# disk_device = sda
|
||||
# disk_device = sda #default
|
||||
# disk_device = xvda
|
||||
#
|
||||
|
||||
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
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
|
||||
|
||||
|
||||
#
|
||||
# Record arch, if present.
|
||||
#
|
||||
if [ -d $prefix/etc/rpm ]; then
|
||||
|
||||
logMessage Found /etc/rpm
|
||||
|
||||
#
|
||||
# If i386 then record this
|
||||
#
|
||||
if [ "$arch" = "i386" ]; then
|
||||
echo "i386-fedora-linux-gnu" >> $prefix/etc/rpm/platform
|
||||
fi
|
||||
else
|
||||
|
||||
logMessage Failed to find /etc/rpm
|
||||
|
||||
fi
|
||||
|
||||
#
|
||||
# Log our finish
|
||||
#
|
||||
logMessage Script $0 finished
|
||||
|
||||
@@ -91,7 +91,7 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
|
||||
|
||||
|
||||
#
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
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
|
||||
|
||||
|
||||
#
|
||||
# Record arch, if present.
|
||||
#
|
||||
if [ -d $prefix/etc/rpm ]; then
|
||||
|
||||
logMessage Found /etc/rpm
|
||||
|
||||
#
|
||||
# If i386 then record this
|
||||
#
|
||||
if [ "$arch" = "i386" ]; then
|
||||
echo "i386-fedora-linux-gnu" >> $prefix/etc/rpm/platform
|
||||
fi
|
||||
else
|
||||
|
||||
logMessage Failed to find /etc/rpm
|
||||
|
||||
fi
|
||||
|
||||
#
|
||||
# Log our finish
|
||||
#
|
||||
logMessage Script $0 finished
|
||||
|
||||
@@ -91,7 +91,8 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
|
||||
|
||||
|
||||
#
|
||||
# If we've updated the /etc/hosts file on the host machine
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
# might develop.
|
||||
#
|
||||
# Steve
|
||||
# --
|
||||
# --
|
||||
#
|
||||
|
||||
|
||||
@@ -130,7 +130,7 @@ disableStartStopDaemon ()
|
||||
chmod 755 "${daemonfile}"
|
||||
logMessage "start-stop-daemon disabled / made a stub."
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
@@ -151,7 +151,7 @@ enableStartStopDaemon ()
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
#
|
||||
@@ -182,7 +182,7 @@ removeDebianPackage ()
|
||||
#
|
||||
# Purge the packages we've been given.
|
||||
#
|
||||
chroot ${prefix} /usr/bin/apt-get remove --yes --purge "$@"
|
||||
chroot ${prefix} /usr/bin/apt-get remove --purge "$@"
|
||||
|
||||
}
|
||||
|
||||
@@ -232,7 +232,7 @@ installGentooPackage ()
|
||||
# Log our options
|
||||
#
|
||||
logMessage "Installing Gentoo package ${package} to prefix ${prefix}"
|
||||
|
||||
|
||||
logMessage "NOTE: Not doing anything - this is a stub - FIXME"
|
||||
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
|
||||
|
||||
|
||||
#
|
||||
|
||||
@@ -91,7 +91,7 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
|
||||
|
||||
#
|
||||
# If we've updated the /etc/hosts file on the host machine
|
||||
|
||||
@@ -90,7 +90,7 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
|
||||
|
||||
#
|
||||
# If we've updated the /etc/hosts file on the host machine
|
||||
|
||||
@@ -1,44 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
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
|
||||
|
||||
|
||||
#
|
||||
# Record arch, if present.
|
||||
#
|
||||
if [ -d $prefix/etc/rpm ]; then
|
||||
|
||||
logMessage Found /etc/rpm
|
||||
|
||||
#
|
||||
# If i386 then record this
|
||||
#
|
||||
if [ "$arch" = "i386" ]; then
|
||||
echo "i386-fedora-linux-gnu" >> $prefix/etc/rpm/platform
|
||||
fi
|
||||
else
|
||||
|
||||
logMessage Failed to find /etc/rpm
|
||||
|
||||
fi
|
||||
|
||||
#
|
||||
# Log our finish
|
||||
#
|
||||
logMessage Script $0 finished
|
||||
|
||||
@@ -91,7 +91,7 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
|
||||
|
||||
|
||||
#
|
||||
|
||||
@@ -64,7 +64,6 @@ cat <<E_O_FSTAB > ${prefix}/etc/fstab
|
||||
#
|
||||
# <file system> <mount point> <type> <options> <dump> <pass>
|
||||
proc /proc proc defaults 0 0
|
||||
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
|
||||
E_O_FSTAB
|
||||
for part in `seq 1 ${NUMPARTITIONS}`; do
|
||||
eval "PARTITION=\"\${PARTITION${part}}\""
|
||||
@@ -76,7 +75,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
||||
x=$(( $x+1 ))
|
||||
done
|
||||
IFS="${OLDIFS}"
|
||||
|
||||
|
||||
case "${partdata2}" in
|
||||
xfs)
|
||||
has_xfs=1
|
||||
@@ -85,7 +84,7 @@ for part in `seq 1 ${NUMPARTITIONS}`; do
|
||||
has_reiserfs=1
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
if [ "${partdata2}" = "swap" ]; then
|
||||
echo "/dev/${device}${part} none swap sw 0 0" >> ${prefix}/etc/fstab
|
||||
else
|
||||
|
||||
@@ -98,7 +98,7 @@ if [ -z "${dhcp}" ]; then
|
||||
|
||||
logMessage Adding ${hostname} and ${name} to /etc/hosts on the host
|
||||
|
||||
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||
echo "${ip1} ${name} ${hostname}" >> /etc/hosts
|
||||
|
||||
#
|
||||
# If we've updated the /etc/hosts file on the host machine
|
||||
|
||||
@@ -25,7 +25,7 @@ use Test::More qw( no_plan );
|
||||
EOF
|
||||
|
||||
|
||||
for i in `rgrep '^use ' .. | grep -v Expect | grep -v POSIX | grep -v Xen:: | grep -v Moose | awk '{print $2}' | tr -d
|
||||
for i in `rgrep '^use ' .. | grep -v Expect | grep -v Xen:: | grep -v Moose | awk '{print $2}' | tr -d
|
||||
\;\(\) | sort | uniq`; \
|
||||
do \
|
||||
echo "BEGIN{ use_ok( '$i' ); }"; \
|
||||
|
||||
@@ -58,6 +58,10 @@ BEGIN{ use_ok( 'Pod::Usage' ); }
|
||||
require_ok( 'Pod::Usage' );
|
||||
|
||||
|
||||
BEGIN{ use_ok( 'POSIX' ); }
|
||||
require_ok( 'POSIX' );
|
||||
|
||||
|
||||
BEGIN{ use_ok( 'strict' ); }
|
||||
require_ok( 'strict' );
|
||||
|
||||
|
||||
0
t/quoted-strings.t
Normal file → Executable file
0
t/quoted-strings.t
Normal file → Executable file
Reference in New Issue
Block a user