Compare commits
6 Commits
release-4.
...
debian-len
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
61fe6248dc | ||
|
|
b8877e9f57 | ||
|
|
f56ebbaf68 | ||
|
|
09bf1cd84d | ||
|
|
7d9b9b9881 | ||
|
|
aba8e1b411 |
@@ -2072,7 +2072,7 @@ EOF
|
|||||||
# This makes it easy to mount parent folders first
|
# This makes it easy to mount parent folders first
|
||||||
# (e.g. /var before /var/tmp)
|
# (e.g. /var before /var/tmp)
|
||||||
#
|
#
|
||||||
@PARTITIONS = sort { length $a->{'mountpoint'} cmp length $b->{'mountpoint'} } @PARTITIONS;
|
@PARTITIONS = sort { length $a->{'mountpoint'} <=> length $b->{'mountpoint'} } @PARTITIONS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -2479,9 +2479,17 @@ sub createLoopbackImages
|
|||||||
$image_cmd = "dd if=/dev/zero of=$disk bs=$size count=1024";
|
$image_cmd = "dd if=/dev/zero of=$disk bs=$size count=1024";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Set the umask so that the images are not world readable.
|
||||||
|
my $oldumask = umask;
|
||||||
|
umask(0077);
|
||||||
|
|
||||||
|
# run the image creation command
|
||||||
runCommand( $image_cmd );
|
runCommand( $image_cmd );
|
||||||
logprint( "Done\n" );
|
logprint( "Done\n" );
|
||||||
|
|
||||||
|
# Reset the umask to the previous value
|
||||||
|
umask($oldumask);
|
||||||
|
|
||||||
if ( ! -e $disk )
|
if ( ! -e $disk )
|
||||||
{
|
{
|
||||||
logprint( "The partition image creation failed to create $disk.\n" );
|
logprint( "The partition image creation failed to create $disk.\n" );
|
||||||
|
|||||||
38
debian/changelog
vendored
38
debian/changelog
vendored
@@ -1,3 +1,41 @@
|
|||||||
|
xen-tools (3.9-4+lenny1) stable; urgency=low
|
||||||
|
|
||||||
|
* Set umask to 0077 before creating disk images (Closes: #548909)
|
||||||
|
(Cherry-picked dfbf591 from master branch)
|
||||||
|
|
||||||
|
-- Axel Beckert <abe@debian.org> Fri, 19 Nov 2010 20:26:43 +0100
|
||||||
|
|
||||||
|
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.
|
||||||
|
Thanks to Giovanni Biscuolo (Closes: #474919)
|
||||||
|
- Add the new hostnames to /etc/hosts on the dom0 in the correct order.
|
||||||
|
Thanks to Wolfgang Karall (Closes: #477775)
|
||||||
|
- Ensure that packages are remoed non-interactively for scripted stuff.
|
||||||
|
Thanks to Wolfgang Karall (Closes: #477629)
|
||||||
|
- Correctly handle custom partitioning systems.
|
||||||
|
Thanks to Stéphane AICARDI (Closes: #477334)
|
||||||
|
|
||||||
|
-- Steve Kemp <skx@debian.org> Wed, 20 Feb 2007 21:22:23 +0000
|
||||||
|
|
||||||
|
xen-tools (3.9-2) unstable; urgency=high
|
||||||
|
|
||||||
|
- Ensure that the hook scripts which setup networking details for
|
||||||
|
Debian & Ubuntu guests will correctly setup teh broadcast address.
|
||||||
|
|
||||||
|
-- Steve Kemp <skx@debian.org> Wed, 20 Feb 2007 21:22:23 +0000
|
||||||
|
|
||||||
xen-tools (3.9-1) unstable; urgency=low
|
xen-tools (3.9-1) unstable; urgency=low
|
||||||
|
|
||||||
- general:
|
- general:
|
||||||
|
|||||||
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
@@ -248,17 +248,17 @@ reiser_options = defaults
|
|||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# If you're using a newer version of the Xen guest kernel you will
|
# If you're using the lenny or later version of the Xen guest kernel you will
|
||||||
# need to make sure that you use 'xvc0' for the guest serial device,
|
# need to make sure that you use 'hvc0' for the guest serial device,
|
||||||
# and 'xvdX' instead of 'sdX' for serial devices.
|
# and 'xvdX' instead of 'sdX' for serial devices.
|
||||||
#
|
#
|
||||||
# You may specify the things to use here:
|
# You may specify the things to use here:
|
||||||
#
|
#
|
||||||
# serial_device = tty1 #default
|
# serial_device = hvc0 #default
|
||||||
# serial_device = xvc0
|
# serial_device = tty1
|
||||||
#
|
#
|
||||||
# disk_device = sda #default
|
# disk_device = xvda #default
|
||||||
# disk_device = xvda
|
# disk_device = sda
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ if [ -z "${dhcp}" ]; 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} ${name} ${hostname}" >> /etc/hosts
|
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ if [ -z "${dhcp}" ]; 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} ${name} ${hostname}" >> /etc/hosts
|
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ removeDebianPackage ()
|
|||||||
#
|
#
|
||||||
# Purge the packages we've been given.
|
# Purge the packages we've been given.
|
||||||
#
|
#
|
||||||
chroot ${prefix} /usr/bin/apt-get remove --purge "$@"
|
chroot ${prefix} /usr/bin/apt-get remove --yes --purge "$@"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ if [ -z "${dhcp}" ]; 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} ${name} ${hostname}" >> /etc/hosts
|
echo "${ip1} ${hostname} ${name}" >> /etc/hosts
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -82,7 +82,7 @@ setupStaticNetworking ()
|
|||||||
#
|
#
|
||||||
bcast='';
|
bcast='';
|
||||||
if [ ! -z "${broadcast}" ]; then
|
if [ ! -z "${broadcast}" ]; then
|
||||||
bcast=' broadcast ${broadcast}'
|
bcast=" broadcast ${broadcast}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ if [ -z "${dhcp}" ]; 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} ${name} ${hostname}" >> /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
|
||||||
|
|||||||
@@ -72,7 +72,7 @@ setupStaticNetworking ()
|
|||||||
#
|
#
|
||||||
bcast='';
|
bcast='';
|
||||||
if [ ! -z "${broadcast}" ]; then
|
if [ ! -z "${broadcast}" ]; then
|
||||||
bcast=' broadcast ${broadcast}'
|
bcast=" broadcast ${broadcast}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -90,8 +90,7 @@ if [ -z "${dhcp}" ]; 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} ${name} ${hostname}" >> /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
|
||||||
|
|||||||
@@ -91,8 +91,7 @@ if [ -z "${dhcp}" ]; 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} ${name} ${hostname}" >> /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
|
||||||
|
|||||||
@@ -64,6 +64,7 @@ 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}}\""
|
||||||
|
|||||||
@@ -98,7 +98,7 @@ if [ -z "${dhcp}" ]; 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} ${name} ${hostname}" >> /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
|
||||||
|
|||||||
Reference in New Issue
Block a user