mirror of
git://git.proxmox.com/git/qemu-server.git
synced 2025-03-09 08:58:25 +03:00
cloudinit: make genisoimage only output errors
avoids a genisoimage output like: > Total translation table size: 0 > Total rockridge attributes bytes: 417 > Total directory bytes: 0 > Path table size(bytes): 10 > Max brk space used 0 > 178 extents written (0 MB) on every VM start. Rather than that useless output, tell genisoimage to be quiet, which still prints errors but nothing else. Additionally print a short single line about that we're to create the cloud-init iso. Reformat while at it. Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
37e9b2d031
commit
86a2e85a26
@ -45,10 +45,12 @@ sub commit_cloudinit_disk {
|
||||
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
|
||||
$plugin->activate_volume($storeid, $scfg, $volname);
|
||||
|
||||
print "generating cloud-init ISO\n";
|
||||
eval {
|
||||
run_command([['genisoimage', '-iso-level', '3', '-R', '-V', $label, $path],
|
||||
['qemu-img', 'dd', '-n', '-f', 'raw', '-O', $format,
|
||||
'isize=0', "osize=$size", "of=$iso_path"]]);
|
||||
run_command([
|
||||
['genisoimage', '-quiet', '-iso-level', '3', '-R', '-V', $label, $path],
|
||||
['qemu-img', 'dd', '-n', '-f', 'raw', '-O', $format, 'isize=0', "osize=$size", "of=$iso_path"]
|
||||
]);
|
||||
};
|
||||
my $err = $@;
|
||||
rmtree($path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user