$vg->{new_vgname} = "$vgname-OLD-$short_uid";
}
- my $response_ok = Proxmox::Install::Config::get_lvm_auto_rename();
- if (!$response_ok) {
+ my $do_rename = Proxmox::Install::Config::get_existing_storage_auto_rename();
+ if (!$do_rename) {
my $message = "Detected existing '$vgname' Volume Group(s)! Do you want to:\n";
for my $vg_uuid (keys %$duplicate_vgs) {
}
$message .= "or cancel the installation?";
- $response_ok = Proxmox::UI::prompt($message);
+ $do_rename = Proxmox::UI::prompt($message);
}
- if ($response_ok) {
+ if ($do_rename) {
for my $vg_uuid (keys %$duplicate_vgs) {
my $vg = $duplicate_vgs->{$vg_uuid};
my $new_vgname = $vg->{new_vgname};
# TODO: single disk selection config
target_hd => undef,
disk_selection => {},
- lvm_auto_rename => 0,
+ existing_storage_auto_rename => 0,
# locale
country => $country,
sub set_target_cmdline { set_key('target_cmdline', $_[0]); }
sub get_target_cmdline { return get('target_cmdline'); }
-sub set_lvm_auto_rename { set_key('lvm_auto_rename', $_[0]); }
-sub get_lvm_auto_rename { return get('lvm_auto_rename'); }
+sub set_existing_storage_auto_rename { set_key('existing_storage_auto_rename', $_[0]); }
+sub get_existing_storage_auto_rename { return get('existing_storage_auto_rename'); }
1;
zfs_opts: None,
target_hd: None,
disk_selection: BTreeMap::new(),
- lvm_auto_rename: 1,
+ existing_storage_auto_rename: 1,
country: answer.global.country.clone(),
timezone: answer.global.timezone.clone(),
"8": "8",
"9": "9"
},
- "lvm_auto_rename": 1,
+ "existing_storage_auto_rename": 1,
"filesys": "zfs (RAID10)",
"gateway": "192.168.1.1",
"hdsize": 223.57088470458984,
"disk_selection": {
"9": "9"
},
- "lvm_auto_rename": 1,
+ "existing_storage_auto_rename": 1,
"filesys": "zfs (RAID0)",
"gateway": "192.168.1.1",
"hdsize": 223.57088470458984,
"8": "8",
"9": "9"
},
- "lvm_auto_rename": 1,
+ "existing_storage_auto_rename": 1,
"filesys": "zfs (RAID10)",
"gateway": "192.168.1.1",
"hdsize": 2980.820640563965,
"filesys": "ext4",
"gateway": "192.168.1.1",
"hdsize": 223.57088470458984,
- "lvm_auto_rename": 1,
+ "existing_storage_auto_rename": 1,
"hostname": "pveauto",
"keymap": "de",
"mailto": "mail@no.invalid",
"filesys": "ext4",
"gateway": "10.10.10.1",
"hdsize": 223.57088470458984,
- "lvm_auto_rename": 1,
+ "existing_storage_auto_rename": 1,
"hostname": "pveauto",
"keymap": "de",
"mailto": "mail@no.invalid",
"filesys": "ext4",
"gateway": "10.10.10.1",
"hdsize": 223.57088470458984,
- "lvm_auto_rename": 1,
+ "existing_storage_auto_rename": 1,
"hostname": "pveauto",
"keymap": "de",
"mailto": "mail@no.invalid",
"6": "6",
"7": "7"
},
- "lvm_auto_rename": 1,
+ "existing_storage_auto_rename": 1,
"filesys": "zfs (RAID1)",
"gateway": "192.168.1.1",
"hdsize": 80.0,
#[serde(skip_serializing_if = "BTreeMap::is_empty")]
pub disk_selection: BTreeMap<String, String>,
- pub lvm_auto_rename: usize,
+ pub existing_storage_auto_rename: usize,
pub country: String,
pub timezone: String,
zfs_opts: None,
target_hd: None,
disk_selection: BTreeMap::new(),
- lvm_auto_rename: 0,
+ existing_storage_auto_rename: 0,
country: options.timezone.country,
timezone: options.timezone.timezone,