mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-07 11:10:24 +00: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});
|
my $plugin = PVE::Storage::Plugin->lookup($scfg->{type});
|
||||||
$plugin->activate_volume($storeid, $scfg, $volname);
|
$plugin->activate_volume($storeid, $scfg, $volname);
|
||||||
|
|
||||||
|
print "generating cloud-init ISO\n";
|
||||||
eval {
|
eval {
|
||||||
run_command([['genisoimage', '-iso-level', '3', '-R', '-V', $label, $path],
|
run_command([
|
||||||
['qemu-img', 'dd', '-n', '-f', 'raw', '-O', $format,
|
['genisoimage', '-quiet', '-iso-level', '3', '-R', '-V', $label, $path],
|
||||||
'isize=0', "osize=$size", "of=$iso_path"]]);
|
['qemu-img', 'dd', '-n', '-f', 'raw', '-O', $format, 'isize=0', "osize=$size", "of=$iso_path"]
|
||||||
|
]);
|
||||||
};
|
};
|
||||||
my $err = $@;
|
my $err = $@;
|
||||||
rmtree($path);
|
rmtree($path);
|
||||||
|
Loading…
Reference in New Issue
Block a user