mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-01 21:30:09 +00:00
Update build.func
This commit is contained in:
parent
eb30288b1c
commit
7f6ebeb119
1 changed files with 25 additions and 7 deletions
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue