From 886c3e37ffe48c552f3b0eba8d2cf26ea0fc7148 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20R=C3=B6gl-Brunner?= Date: Thu, 29 Jan 2026 10:05:14 +0100 Subject: [PATCH] feat(ConfigurationModal): add Container ID (CTID) and DNS Search Domain to advanced install - Add optional Container ID (CTID) field at top of advanced form (var_ctid) - Add DNS Search Domain field in Network section (var_searchdomain) - Validate CTID when set: integer >= 100; empty = use next available ID - Both fields optional; empty values omitted from env so script uses defaults --- src/app/_components/ConfigurationModal.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/app/_components/ConfigurationModal.tsx b/src/app/_components/ConfigurationModal.tsx index b66aeff..48e0d47 100644 --- a/src/app/_components/ConfigurationModal.tsx +++ b/src/app/_components/ConfigurationModal.tsx @@ -88,6 +88,7 @@ export function ConfigurationModal({ var_mtu: 1500, var_mac: '', var_ns: '', + var_searchdomain: '', // Identity var_hostname: slug, @@ -214,7 +215,7 @@ export function ConfigurationModal({ } // Container ID (CTID): if set, must be integer >= 100 const ctidVal = advancedVars.var_ctid; - if (ctidVal !== '' && ctidVal !== undefined) { + if (ctidVal !== '' && ctidVal !== undefined && typeof ctidVal !== 'boolean') { const ctidNum = typeof ctidVal === 'string' ? parseInt(ctidVal, 10) : ctidVal; if (isNaN(ctidNum) || ctidNum < 100) { newErrors.var_ctid = 'Must be 100 or greater'; @@ -656,6 +657,17 @@ export function ConfigurationModal({

{errors.var_ns}

)} +
+ + updateAdvancedVar('var_searchdomain', e.target.value)} + placeholder="e.g. local, home.lan" + /> +