aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-04-13 00:05:09 -0400
committerCraig Jennings <c@cjennings.net>2026-04-13 00:05:09 -0400
commit88d2fafe410a82dfa3534d7c0466689997407a0c (patch)
tree42ec1ef1406325ae281a32864e32d5a083380ddc
parent19f4624749228fcbe385d1edf1d2542c036440ff (diff)
downloadarchangel-88d2fafe410a82dfa3534d7c0466689997407a0c.tar.gz
archangel-88d2fafe410a82dfa3534d7c0466689997407a0c.zip
refactor: drop dead mount_efi and select_raid_level from lib/disk.sh
lib/disk.sh:mount_efi() was shadowed by installer/archangel:mount_efi() (different signature, no-arg ZFS-specific) and had zero callers. lib/disk.sh:select_raid_level() was superseded by get_raid_level() in archangel and also had zero callers. Both removed.
-rw-r--r--installer/lib/disk.sh41
1 files changed, 0 insertions, 41 deletions
diff --git a/installer/lib/disk.sh b/installer/lib/disk.sh
index 2e7deb3..f40d828 100644
--- a/installer/lib/disk.sh
+++ b/installer/lib/disk.sh
@@ -122,16 +122,6 @@ format_efi_partitions() {
done
}
-# Mount EFI partition
-mount_efi() {
- local partition="$1"
- local mount_point="${2:-/mnt/efi}"
-
- mkdir -p "$mount_point"
- mount "$partition" "$mount_point" || error "Failed to mount EFI at $mount_point"
- info "Mounted EFI: $partition -> $mount_point"
-}
-
#############################
# Disk Selection (Interactive)
#############################
@@ -171,34 +161,3 @@ select_disks() {
info "Selected disks: ${SELECTED_DISKS[*]}"
}
-#############################
-# RAID Level Selection
-#############################
-
-select_raid_level() {
- local num_disks=${#SELECTED_DISKS[@]}
-
- if [[ $num_disks -eq 1 ]]; then
- RAID_LEVEL=""
- info "Single disk - no RAID"
- return
- fi
-
- step "Select RAID level"
-
- local options=()
- options+=("mirror - Mirror data across disks (recommended)")
-
- if [[ $num_disks -ge 3 ]]; then
- options+=("raidz1 - Single parity, lose 1 disk capacity")
- fi
- if [[ $num_disks -ge 4 ]]; then
- options+=("raidz2 - Double parity, lose 2 disks capacity")
- fi
-
- local selected
- selected=$(fzf_select "RAID level:" "${options[@]}")
- RAID_LEVEL=$(echo "$selected" | cut -d' ' -f1)
-
- info "Selected RAID level: $RAID_LEVEL"
-}