summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-05-23 11:19:03 -0500
committerJohn Estabrook <jestabro@vyos.io>2023-11-15 11:29:04 -0600
commitb31092cc33685628c74845f2aa1e94f0e7879e87 (patch)
tree0915f1e9f3a988c7f74380806b0d8a09b4773f06 /src
parent7d6c262976eba624b935c96a7495cc392158b8ff (diff)
downloadvyos-1x-b31092cc33685628c74845f2aa1e94f0e7879e87.tar.gz
vyos-1x-b31092cc33685628c74845f2aa1e94f0e7879e87.zip
image: T4516: do not prompt for config copy on live install
Diffstat (limited to 'src')
-rw-r--r--src/op_mode/image_installer.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/op_mode/image_installer.py b/src/op_mode/image_installer.py
index 1f3245316..32ec075e4 100644
--- a/src/op_mode/image_installer.py
+++ b/src/op_mode/image_installer.py
@@ -415,11 +415,7 @@ def install_image() -> None:
chown(target_config_dir, group='vyattacfg')
chmod_2775(target_config_dir)
# copy config
- if migrate_config():
- copy('/opt/vyatta/etc/config/config.boot', target_config_dir)
- else:
- copy('/opt/vyatta/etc/config.boot.default',
- f'{target_config_dir}/config.boot')
+ copy('/opt/vyatta/etc/config/config.boot', target_config_dir)
configure_authentication(f'{target_config_dir}/config.boot',
user_password)
Path(f'{target_config_dir}/.vyatta_config').touch()