]> git.proxmox.com Git - pve-installer.git/commitdiff
add $product_fullname hash and use it
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 3 Jul 2019 08:21:49 +0000 (10:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 3 Jul 2019 08:21:49 +0000 (10:21 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxinstall

index d3f9fd7cd245b8c9b8f8b553c57d526dd81695e5..c8cdf21bb56194dae711b1d0e9cd26a5188160fe 100755 (executable)
@@ -40,6 +40,11 @@ my $zfstestpool = "test_rpool";
 my $zfspoolname = $opt_testmode ? $zfstestpool : 'rpool';
 my $zfsrootvolname = "$setup->{product}-1";
 
+my $product_fullname = {
+    pve => 'Proxmox VE',
+    pmg => 'Proxmox MailGateway',
+};
+
 my $storage_cfg_zfs = <<__EOD__;
 dir: local
        path /var/lib/vz
@@ -3233,7 +3238,10 @@ sub create_intro_view {
     cleanup_view();
 
     if (int($total_memory) < 1024) {
-       display_error("Less than 1 GiB memory detected, installation will probably fail.\n");
+       my $fullname = $product_fullname->{$setup->{product}};
+
+       display_error("Less than 1 GiB memory detected, installation will probably fail.\n\n".
+           "See 'System Requirements' in the $fullname documentation.");
     }
 
     if ($setup->{product} eq 'pve') {