make sure during install autostart is not enabled

This commit is contained in:
mischa 2023-05-04 16:44:43 +02:00
parent d48936e76f
commit 9f485b6588
1 changed files with 2 additions and 2 deletions

View File

@ -120,7 +120,7 @@ sub render_vm_conf {
my $_mac = $vms{$vm_name}{'mac'} || $conf{'conf'}{'MAC_PREFIX'} . ":" . $vms{$vm_name}{'vm_number'}; my $_mac = $vms{$vm_name}{'mac'} || $conf{'conf'}{'MAC_PREFIX'} . ":" . $vms{$vm_name}{'vm_number'};
printf $fh_vm "vm \"%s\" {\n", $_instance; printf $fh_vm "vm \"%s\" {\n", $_instance;
printf $fh_vm "\tdisable\n" if ! $vms{$vm_name}{'enable'}; printf $fh_vm "\tdisable\n" if (! $vms{$vm_name}{'enable'} || ! -e $_disk);
printf $fh_vm "\towner %s\n", $_owner; printf $fh_vm "\towner %s\n", $_owner;
printf $fh_vm "\tmemory %s\n", $_memory if $_memory; printf $fh_vm "\tmemory %s\n", $_memory if $_memory;
printf $fh_vm "\tboot device net\n" if (! -e $_disk); printf $fh_vm "\tboot device net\n" if (! -e $_disk);
@ -363,7 +363,7 @@ my %vms;
my @files = glob "$conf{'conf'}{'VMS'}/*.txt"; my @files = glob "$conf{'conf'}{'VMS'}/*.txt";
%vms = get_variables('vms', @files); %vms = get_variables('vms', @files);
$conf{'conf'}{'DHCPD'} = "yes" if ! $conf{'conf'}{'DHCPD'}; $conf{'conf'}{'DHCPD'} = "yes" if (! $conf{'conf'}{'DHCPD'});
# run all functions # run all functions
#debug_parse(\%conf, \%vms); #debug_parse(\%conf, \%vms);