Skip to content

fix(disk): use fmask=0177 for EFI partition mount options - #4715

Open
AnouarMohamed wants to merge 1 commit into
archlinux:masterfrom
AnouarMohamed:fix-efi-fmask
Open

fix(disk): use fmask=0177 for EFI partition mount options#4715
AnouarMohamed wants to merge 1 commit into
archlinux:masterfrom
AnouarMohamed:fix-efi-fmask

Conversation

@AnouarMohamed

Copy link
Copy Markdown

Fixes #4714

Context & Rationale

When setting default mount options for the EFI system partition, fmask=0077 was previously used. Updating this to fmask=0177 ensures files on the ESP are not created with execute permissions, while keeping dmask=0077 for directories. This aligns with systemd's default behavior for ESP mount options (fmask=0177,dmask=0077) and satisfies bootctl requirements.

Changes

  • Changed fmask=0077 to fmask=0177 in archinstall/lib/installer.py when setting EFI partition mount options.

Update default fmask from 0077 to 0177 for EFI system partitions when mounting. Using 0177 aligns with systemd defaults while preventing non-executable file bit permissions and satisfying bootctl requirements.

Fixes archlinux#4714
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change fmask value in /etc/fstab

1 participant