1
0
mirror of synced 2026-02-20 05:45:15 +00:00

Compare commits

...

6 Commits

Author SHA1 Message Date
Axel Beckert
61fe6248dc Finish changelog entry 2010-11-20 15:49:49 +01:00
Axel Beckert
b8877e9f57 Set umask to 0077 before creating disk images 2010-08-31 23:27:47 +02:00
Radu Spineanu
f56ebbaf68 Document state of Debian package 3.9-4 2010-08-31 22:56:33 +02:00
Steve Kemp
09bf1cd84d Document state of Debian package 3.9-3 2010-08-31 22:40:01 +02:00
Steve Kemp
7d9b9b9881 Document state of Debian package 3.9-2 2010-08-31 22:28:34 +02:00
Steve Kemp
aba8e1b411 Document state of Debian package 3.9-1 2010-08-31 22:19:29 +02:00
18 changed files with 86 additions and 45 deletions

View File

@@ -1,4 +0,0 @@
(^|/)CVS($|/)
(^|/)\.hg($|/)
(^|/)\.hgtags($|/)
ChangeLog

View File

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

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

0
debian/examples/update-modules vendored Executable file → Normal file
View File

0
debian/preinst vendored Executable file → Normal file
View File

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

View File

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

View File

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

View File

@@ -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 "$@"
} }

View File

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

View File

@@ -82,7 +82,7 @@ setupStaticNetworking ()
# #
bcast=''; bcast='';
if [ ! -z "${broadcast}" ]; then if [ ! -z "${broadcast}" ]; then
bcast=' broadcast ${broadcast}' bcast=" broadcast ${broadcast}"
fi fi
# #

View File

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

View File

@@ -72,7 +72,7 @@ setupStaticNetworking ()
# #
bcast=''; bcast='';
if [ ! -z "${broadcast}" ]; then if [ ! -z "${broadcast}" ]; then
bcast=' broadcast ${broadcast}' bcast=" broadcast ${broadcast}"
fi fi
# #

View File

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

View File

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

View File

@@ -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}}\""

View File

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