diff options
| author | Craig Jennings <c@cjennings.net> | 2026-01-23 20:02:02 -0600 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-01-23 20:02:02 -0600 |
| commit | 337dea91f567ceebb1f9dbef2b3cd93ca440b795 (patch) | |
| tree | 912ac7a54c2f6c50783a887eb173918189a732fd /custom/lib/common.sh | |
| parent | 9a21678f42489f017843fb295b776e6066f852c9 (diff) | |
| download | archangel-337dea91f567ceebb1f9dbef2b3cd93ca440b795.tar.gz archangel-337dea91f567ceebb1f9dbef2b3cd93ca440b795.zip | |
Phase 1.4: Add filesystem selection prompt
- Add FILESYSTEM variable to config (zfs or btrfs)
- Add select_filesystem() function with fzf support
- Update gather_input() to prompt for filesystem in interactive mode
- Add validation for FILESYSTEM in unattended mode
- Btrfs selection errors with "not yet implemented"
- Update banner to show "Archangel" branding
- Update config example with FILESYSTEM option
Groundwork for btrfs support - filesystem choice is now captured,
installation logic gates on FILESYSTEM variable.
Diffstat (limited to 'custom/lib/common.sh')
| -rw-r--r-- | custom/lib/common.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/custom/lib/common.sh b/custom/lib/common.sh index 2f8844e..c271aec 100644 --- a/custom/lib/common.sh +++ b/custom/lib/common.sh @@ -101,6 +101,38 @@ fzf_multi() { } ############################# +# Filesystem Selection +############################# + +# Select filesystem type (ZFS or Btrfs) +# Sets global FILESYSTEM variable +select_filesystem() { + step "Select Filesystem" + + local options=( + "ZFS - Native encryption, best data integrity (recommended)" + "Btrfs - Native Linux, GRUB snapshot boot" + ) + + local selected + selected=$(fzf_select "Filesystem:" "${options[@]}") + + case "$selected" in + ZFS*) + FILESYSTEM="zfs" + info "Selected: ZFS" + ;; + Btrfs*) + FILESYSTEM="btrfs" + info "Selected: Btrfs" + ;; + *) + error "No filesystem selected" + ;; + esac +} + +############################# # Disk Utilities ############################# |
