Compare commits
3 Commits
debian-3.9
...
debian-len
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
61fe6248dc | ||
|
|
b8877e9f57 | ||
|
|
f56ebbaf68 |
@@ -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" );
|
||||||
|
|||||||
18
debian/changelog
vendored
18
debian/changelog
vendored
@@ -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
|
xen-tools (3.9-3) unstable; urgency=medium
|
||||||
|
|
||||||
- Ensure that Fedora guests get /dev/pts mounted.
|
- Ensure that Fedora guests get /dev/pts mounted.
|
||||||
|
|||||||
@@ -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
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user