]>
git.proxmox.com Git - pve-installer.git/blob - ProxmoxInstallerSetup.pm
1 package ProxmoxInstallerSetup
;
8 fullname
=> 'Proxmox VE',
14 fullname
=> 'Proxmox Mail Gateway',
20 fullname
=> 'Proxmox Backup Server',
28 my $cd_info = get_cd_info
();
29 my $product = $cd_info->{product
};
31 my $setup_info = $product_cfg->{$product};
32 die "unknown product '$product'\n" if !$setup_info;
34 $setup_info->{product
} = $product;
36 return ($setup_info, $cd_info);
40 my $info_fn = '/.cd-info'; # default place in the ISO environment
41 if (!-f
$info_fn && -f
"cd-info.test") {
42 $info_fn = "cd-info.test"; # use from CWD for test mode
45 open(my $fh, '<', $info_fn) or die "Could not open CD info file '$info_fn' $!";
48 while (my $line = <$fh>) {
50 if ($line =~ /^(\S+)=['"]?(.+?)['"]?$/) { # we control cd-info content, so good enough.
51 $cd_info->{lc($1)} = $2;
56 die "CD-info is missing required key 'product'!\n" if !defined $cd_info->{product
};