archinstall
archinstall copied to clipboard
Bad grub configuration for /efi or /boot/efi partitions
I do not understand the fix #2048
It will put grub.cfg into /boot/efi/grub if we use /boot/efi as esp partition OR into /efi/grub if we use /efi as esp partition
boot_dir = Path('/boot')
boot_dir_arg = []
if boot_partition.mountpoint and boot_partition.mountpoint != boot_dir:
boot_dir_arg.append(f'--boot-directory={boot_partition.mountpoint}')
boot_dir = boot_partition.mountpoint
Indeed, either we use /efi (new style) or /boot/efi (old style) as esp partition, grub.cfg, grubenv, fonts, locales and so on should not be in this partition.
It causes issue with btrfs snapshot for instance if you want to do a restore. All thoses files should be located in the /boot/grub FOLDER inside the root filesystem.
Only bootx64.efi or/and grubx64.efi should be inside the esp partition.
NB: also, permissions of folder (e.g. the mounpoint) in esp partition must be drwx------ and not drwxr-xr-x
I have meet the same issue, when use /efi as ESP, will exec grub-mkconfig -o /efi/grub/grub.cfg, this will cause 2 issues:
- There is no
/efi/grubdirectory in the ESP. - Grub will try to load
/boot/grub/grub.cfgso it won't boot archlinux.
@HanM23
Indeed, either we use /efi (new style) or /boot/efi (old style) as esp partition, grub.cfg, grubenv, fonts, locales and so on should not be in this partition.
It causes issue with btrfs snapshot for instance if you want to do a restore. All thoses files should be located in the /boot/grub FOLDER inside the root filesystem.
What if the user chooses to encrypt the root file system? This would be problematic because archinstall supports encrypting the root file system but not /boot (see #1271).
@p2world, duplicate of #2372
What if the user chooses to encrypt the root file system? This would be problematic because archinstall supports encrypting the root file system but not
/boot(see #1271).
This is the problem indeed if the installer does not support /boot encryption, it should, hopefully soon.
Right. It can be done, it just is not there yet.