fix(webinstaller): FilesystemType.Ext4 → .EXT4 for newer archinstall
Some checks are pending
CI / lint (push) Waiting to run
CI / test (push) Waiting to run
CI / validate-json (push) Waiting to run
CI / markdown-links (push) Waiting to run
Build ISO / build-iso (push) Successful in 17m8s

archinstall's enum members got renamed from CapitalCase (Ext4) to
ALL_CAPS (EXT4) between when build_disk_config was written and the
version baked into the current Arch live ISO. Result: the install
step fires AttributeError at the archinstall JSON-dump moment,
rendering a Flask 500 right after the Confirm page.

Traceback from the VM:
  File "/opt/furtka/app.py", line 128, in build_disk_config
    filesystem_type=FilesystemType.Ext4,
AttributeError: type object 'FilesystemType' has no attribute
  'Ext4'. Did you mean: 'EXT4'?

Tests pass because build_disk_config is monkeypatched out in CI
(archinstall isn't pip-installable; it only exists on the live ISO).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Daniel Maksymilian Syrnicki 2026-04-16 14:18:30 +02:00
parent b8fdb62b41
commit 43a39a4b04

View file

@ -125,7 +125,10 @@ def build_disk_config(boot_drive):
device_mod = asyncio.run(
suggest_single_disk_layout(
device,
filesystem_type=FilesystemType.Ext4,
# archinstall renamed the enum members to ALL_CAPS at some point
# between when we wrote this and the pinned Arch live ISO version.
# The old name `Ext4` now raises AttributeError at install time.
filesystem_type=FilesystemType.EXT4,
separate_home=False,
)
)