common: Show warning when migrating to new syntax

This commit is contained in:
tschettervictor
2025-07-20 14:06:44 -06:00
committed by GitHub
parent bdcf921c1d
commit 0e382dbb94

View File

@@ -560,6 +560,11 @@ update_jail_syntax_v1() {
# Only apply if old syntax is found
if grep -Eoq "exec.prestart.*ifconfig epair[0-9]+ create.*" "${jail_config}"; then
warn "\n[WARNING]\n"
warn "Updating jail.conf to new syntax..."
warn "Please review your jail.conf file after completion."
warm "VNET jails created without -M will be assigned a new MAC address."
if [ "$(echo -n "e0a_${jail}" | awk '{print length}')" -lt 16 ]; then
local new_host_epair=e0a_${jail}
local new_jail_epair=e0b_${jail}