diff options
Diffstat (limited to 'hscript/script_e.cc')
-rw-r--r-- | hscript/script_e.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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", |