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

Compare commits

...

3 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
3 changed files with 32 additions and 6 deletions

View File

@@ -2479,9 +2479,17 @@ sub createLoopbackImages
$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 );
logprint( "Done\n" );
# Reset the umask to the previous value
umask($oldumask);
if ( ! -e $disk )
{
logprint( "The partition image creation failed to create $disk.\n" );

18
debian/changelog vendored
View File

@@ -1,3 +1,21 @@
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.

View File

@@ -248,17 +248,17 @@ reiser_options = defaults
#
# 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,
# 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,
# and 'xvdX' instead of 'sdX' for serial devices.
#
# You may specify the things to use here:
#
# serial_device = tty1 #default
# serial_device = xvc0
# serial_device = hvc0 #default
# serial_device = tty1
#
# disk_device = sda #default
# disk_device = xvda
# disk_device = xvda #default
# disk_device = sda
#