mirror of
https://git.proxmox.com/git/pve-installer
synced 2025-05-28 09:18:33 +00:00
run env: always re-create run env file in test mode
When debugging or otherwise deliberately running the `dump-env` low-level installer command in test mode, chances are that you'd want the run env file to be re-created as well. No impact on the normal installation flow. Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
This commit is contained in:
parent
21ef304897
commit
723afe2a4e
@ -248,7 +248,7 @@ my sub detect_country_tracing_to : prototype($$) {
|
||||
sub query_installation_environment : prototype() {
|
||||
# check first if somebody already cached this for us and re-use that
|
||||
my $run_env_file = Proxmox::Install::ISOEnv::get('run-env-cache-file');
|
||||
if (-f "$run_env_file") {
|
||||
if (-f "$run_env_file" && !Proxmox::Install::ISOEnv::is_test_mode()) {
|
||||
log_info("re-using cached runtime env from $run_env_file");
|
||||
my $cached_env = eval {
|
||||
my $run_env_raw = Proxmox::Sys::File::file_read_all($run_env_file);
|
||||
|
Loading…
Reference in New Issue
Block a user