fix(installer): Fix language check case

When attempting to follow the docs on the installer, this error comes
up:
```
$ clan flash --flake git+https://git.clan.lol/clan/clan-core \
             --ssh-pubkey ~/.ssh/id_ed25519.pub \
             --keymap us \
             --language en_US.utf-8 \
             --dry-run flash-installer

ERROR: Language 'en_US.utf-8' is not a valid language. Run 'clan flash --list-languages' to see a list of possible languages.
```

I only decided to clean up the docs, but I'm also okay with just
downcasing the locales in `list_possible_languages()`.
This commit is contained in:
Aos Dabbagh
2024-08-20 19:47:01 -04:00
committed by Mic92
parent 13d4e5c7f3
commit 1e96f59ecd
2 changed files with 3 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ sudo umount /dev/sdb1
clan flash --flake git+https://git.clan.lol/clan/clan-core \
--ssh-pubkey $HOME/.ssh/id_ed25519.pub \
--keymap us \
--language en_US.utf-8 \
--language en_US.UTF-8 \
--disk main /dev/sd<X> \
flash-installer
```

View File

@@ -98,7 +98,7 @@ def test_nested_nullable() -> None:
},
"mode": "format",
"disks": {"main": "/dev/sda"},
"system_config": {"language": "en_US.utf-8", "keymap": "en"},
"system_config": {"language": "en_US.UTF-8", "keymap": "en"},
"dry_run": False,
"write_efi_boot_entries": False,
"debug": False,
@@ -113,7 +113,7 @@ def test_nested_nullable() -> None:
mode="format",
disks={"main": "/dev/sda"},
system_config=SystemConfig(
language="en_US.utf-8", keymap="en", ssh_keys_path=None
language="en_US.UTF-8", keymap="en", ssh_keys_path=None
),
dry_run=False,
write_efi_boot_entries=False,