configurator: clarify free-space install semantics
This commit is contained in:
1 file changed
+8
-5
@@ -336,7 +336,8 @@ run_partition_install() {
|
|||||||
|
|
||||||
if [[ -z "$FREE_SPACE_INFO" ]]; then
|
if [[ -z "$FREE_SPACE_INFO" ]]; then
|
||||||
gum style --foreground 1 "No usable free space detected on $disk."
|
gum style --foreground 1 "No usable free space detected on $disk."
|
||||||
gum style "Open the partition tool to create unallocated free space, or choose Full disk install."
|
gum style "Partition install uses unallocated free space, not a pre-created partition."
|
||||||
|
gum style "Open the partition tool, delete/shrink partitions until the target area says Free space, then leave it unallocated."
|
||||||
gum confirm --affirmative "Back" --negative "Back" "Return to installation mode?" >/dev/null 2>&1 || true
|
gum confirm --affirmative "Back" --negative "Back" "Return to installation mode?" >/dev/null 2>&1 || true
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -353,7 +354,8 @@ run_partition_install() {
|
|||||||
|
|
||||||
if (( FREE_SIZE_B < MIN_TOTAL_B )); then
|
if (( FREE_SIZE_B < MIN_TOTAL_B )); then
|
||||||
gum style --foreground 1 "Free space ($(to_gb $FREE_SIZE_B)) is below the 32GB minimum for Omarchy."
|
gum style --foreground 1 "Free space ($(to_gb $FREE_SIZE_B)) is below the 32GB minimum for Omarchy."
|
||||||
gum style "Open the partition tool to create more unallocated space, or choose a different install mode."
|
gum style "Partition install uses unallocated free space, not a pre-created partition."
|
||||||
|
gum style "Open the partition tool, delete/shrink partitions until the target area says Free space, then leave it unallocated."
|
||||||
gum confirm --affirmative "Back" --negative "Back" "Return to installation mode?" >/dev/null 2>&1 || true
|
gum confirm --affirmative "Back" --negative "Back" "Return to installation mode?" >/dev/null 2>&1 || true
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -655,7 +657,8 @@ disk_form
|
|||||||
open_partition_tool() {
|
open_partition_tool() {
|
||||||
step "Partition tool for $disk"
|
step "Partition tool for $disk"
|
||||||
gum style "Create unallocated free space for Omarchy, then write changes and quit."
|
gum style "Create unallocated free space for Omarchy, then write changes and quit."
|
||||||
gum style --foreground 8 "Tip: partition install needs at least 32GB of unallocated free space."
|
gum style --foreground 8 "Do not create an Omarchy partition here — leave the target area as Free space."
|
||||||
|
gum style --foreground 8 "Tip: free-space install needs at least 32GB unallocated, plus 2GB more if no ESP already exists."
|
||||||
echo
|
echo
|
||||||
gum confirm --affirmative "Open cfdisk" --negative "Back" "Open partition tool for $disk?" || return 0
|
gum confirm --affirmative "Open cfdisk" --negative "Back" "Open partition tool for $disk?" || return 0
|
||||||
|
|
||||||
@@ -670,7 +673,7 @@ install_mode_form() {
|
|||||||
step "Installation mode"
|
step "Installation mode"
|
||||||
install_mode=$(gum choose --header "How should Omarchy be installed on $disk?" \
|
install_mode=$(gum choose --header "How should Omarchy be installed on $disk?" \
|
||||||
"Full disk install" \
|
"Full disk install" \
|
||||||
"Partition install (alongside existing data)" \
|
"Free space install (alongside existing data)" \
|
||||||
"Open partition tool") || abort
|
"Open partition tool") || abort
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -681,7 +684,7 @@ while true; do
|
|||||||
"Full disk install")
|
"Full disk install")
|
||||||
break
|
break
|
||||||
;;
|
;;
|
||||||
"Partition install (alongside existing data)")
|
"Free space install (alongside existing data)")
|
||||||
if run_partition_install "$@"; then
|
if run_partition_install "$@"; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user