From ea9bfce0275e3e3f1b0fc04a099bb2deabb4e7ab Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 15 May 2020 01:48:39 -0500 Subject: hscript: Don't change networking in image mode Network configuration on the host should not be changed if we are only creating an image. --- hscript/script_e.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hscript') diff --git a/hscript/script_e.cc b/hscript/script_e.cc index 22b2ca6..a7bb6d2 100644 --- a/hscript/script_e.cc +++ b/hscript/script_e.cc @@ -446,7 +446,10 @@ bool Script::execute() const { } } #ifdef HAS_INSTALL_ENV - else { + else if(opts.test(ImageOnly)) { + /* Don't do anything with the network configuration if we are + * only creating an image. */ + } else { if(do_wpa) { fs::copy_file(targ_etc + "/wpa_supplicant/wpa_supplicant.conf", "/etc/wpa_supplicant/wpa_supplicant.conf", -- cgit v1.2.3-70-g09d2