1.1.0: Add auto-discovery for Linux distributions
1. Auto-Discovery of Distributions
Instead of a hardcoded list, the script now:
- Fetches the directory listing from https://download.switchroot.org/
- Automatically discovers all Linux distros (ubuntu, fedora, lakka, arch, debian, manjaro, opensuse)
- Dynamically builds the distro list - new distros like Fedora 42 will be detected automatically
2. Dynamic Display Names
Added get_distro_display_name() function that:
- Generates friendly names from folder names (e.g.,
fedora-42→Fedora 42) - Handles known Ubuntu versions with codenames (bionic, jammy, noble)
- Falls back to capitalized folder name for unknown distros
3. Smart Boot Files Detection
Replaced the simple search with a 4-strategy approach:
| Strategy | Description |
|---|---|
| 1 | Exact match: switchroot/fedora-42/ |
| 2 | Base name match: switchroot/fedora/ (for fedora-42) |
| 3 | Any directory with boot files inside switchroot/ |
| 4 | Boot files in archive root (reorganizes them) |
This handles different archive structures that different distro maintainers might use.
4. Better Error Messages
- More informative errors explaining what went wrong
- Points users to the log file for debugging
- Detailed logging of which strategy found the boot files