alis icon indicating copy to clipboard operation
alis copied to clipboard

`/boot` permissions set to `0755` is not good

Open tkna91 opened this issue 2 years ago • 1 comments

I ran bootctl install to update the systemd-boot entry, resulting in the events in this thread.

  • https://bbs.archlinux.org/viewtopic.php?id=287695
  • https://bbs.archlinux.org/viewtopic.php?id=287790

If it seems that mounting /boot as follows before doing genfstab will generate an fstab with permission 0700 accordingly, it would be preferable to do so. Sorry if I'm wrong.

mount -o uid=0,gid=0,fmask=0077,dmask=0077 "$DEVICE_BOOT" "${MNT_DIR}"/boot

tkna91 avatar Nov 17 '23 21:11 tkna91

Is it this part here? https://github.com/picodotdev/alis/blob/bc0738b0036409cf44239ceb85db82a461b25da2/alis-commons.sh#L423C38-L423C38

tkna91 avatar Nov 17 '23 22:11 tkna91

These opts should only be used if the /boot partition is fat32 for EFI Otherwise with bios + ext4 this fails.

Ah this is already pointed out by #252

code8buster avatar Apr 01 '24 12:04 code8buster