mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-05-01 13:36:15 +00:00
create ci disk: long line cleanup
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
c152600b93
commit
4fdc1d3dfc
@ -158,10 +158,9 @@ my $create_disks = sub {
|
||||
$fmt = $disk->{format} // "raw";
|
||||
}
|
||||
|
||||
# Initial disk created with 4MB, every time it is regenerated the disk is aligned to 4MB again.
|
||||
my $cloudinit_iso_size = 4; # in MB
|
||||
my $volid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $vmid,
|
||||
$fmt, $name, $cloudinit_iso_size*1024);
|
||||
# Initial disk created with 4 MB and aligned to 4MB on regeneration
|
||||
my $ci_size = 4 * 1024;
|
||||
my $volid = PVE::Storage::vdisk_alloc($storecfg, $storeid, $vmid, $fmt, $name, $ci_size);
|
||||
$disk->{file} = $volid;
|
||||
$disk->{media} = 'cdrom';
|
||||
push @$vollist, $volid;
|
||||
|
Loading…
Reference in New Issue
Block a user