fix(efi): collapse fmask/dmask dedup to dict.fromkeys one-liner

Per @Torxed's review feedback. Same semantics as the previous loop
(dedupe by exact-string match) but shorter. dict.fromkeys preserves
insertion order, where set() would not.
This commit is contained in:
0xdeadd 2026-05-13 11:36:42 -04:00
parent 98cb263b83
commit 6ed42e3ca1
1 changed files with 1 additions and 3 deletions

View File

@ -378,9 +378,7 @@ class Installer:
options = list(part_mod.mount_options)
if part_mod.is_efi():
for opt in ('fmask=0077', 'dmask=0077'):
if opt not in options:
options.append(opt)
options = list(dict.fromkeys(options + ['fmask=0077', 'dmask=0077']))
mount(part_mod.dev_path, target, options=options)
elif part_mod.fs_type == FilesystemType.BTRFS: