From d9f88cb032d9cbc6dcaedac5765801354046206a Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Thu, 12 Mar 2026 11:04:10 +0100 Subject: [PATCH] feat(build): add mode=generated for unattended frontend installs Adds a 'generated' case to install_script() in build.func. When mode=generated is set, the script runs with default settings in unattended mode and reports METHOD=generated to telemetry. This allows the frontend generator to trigger installs without interactive prompts while being distinguishable in analytics. --- misc/build.func | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/misc/build.func b/misc/build.func index 4a4c0617f..97eb9270a 100644 --- a/misc/build.func +++ b/misc/build.func @@ -3063,6 +3063,15 @@ install_script() { header_info CHOICE="" ;; + generated | GENERATED) + header_info + echo -e "${DEFAULT}${BOLD}${BL}Using Generated Settings on node $PVEHOST_NAME${CL}" + VERBOSE="no" + METHOD="generated" + base_settings "$VERBOSE" + echo_default + break + ;; *) msg_error "Invalid option: $CHOICE" exit 112