Update build.func

This commit is contained in:
CanbiZ 2026-01-12 18:41:19 +01:00
parent eb30288b1c
commit 7f6ebeb119

View file

@ -3747,7 +3747,25 @@ validate_storage_space() {
if [[ "$storage_free" -lt "$required_kb" ]]; then if [[ "$storage_free" -lt "$required_kb" ]]; then
if [[ "$show_dialog" == "yes" ]]; then if [[ "$show_dialog" == "yes" ]]; then
whiptail --msgbox "⚠️ Warning: Storage '$storage' may not have enough space!\n\nStorage Type: ${storage_type}\nRequired: ${required_gb}GB\nAvailable: ${free_gb_fmt}\n\nYou can continue, but creation might fail." 14 70 whiptail --msgbox "⚠️ Warning: Storage '$storage' may not have enough space!\n\nStorage Type: ${storage_type}\nRequired: ${required_gb}GB\nAvailable: ${free_gb_fmt}\n\nYou can continue, but creation might fail." 14 70
fi
return 1
fi
return 0
}
# ==============================================================================
# SECTION 8: CONTAINER CREATION
# ==============================================================================
# ------------------------------------------------------------------------------
# create_lxc_container()
#
# - Main function for creating LXC containers
# - Handles all phases: validation, template discovery, container creation,
# network config, storage, etc.
# - Extensive error checking with detailed exit codes
# ------------------------------------------------------------------------------
create_lxc_container() { create_lxc_container() {
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Optional verbose mode (debug tracing) # Optional verbose mode (debug tracing)