Qubes OS Installation - BTRFS w/ Detached encrypted boot and header

System:

  • EFI
  • single nvme disk
  • no other OS

I have followed this bible to this point, but this pass seems unsurmountable! I’m getting:

grub2-install: error: /usr/lib/grub/x86_64-efi/modinfo.sh doesn't exit. Please specify --target --directory

Grub only has i386! That’s strange. It should at least have x86_64 even if not efi

$ ls /usr/lib/grub/
i386-pc

I tried grub-install --target=x86_64-efi & --efi-directory=/boot/efi --bootloader-id=grub2 which returned the same error as /boot/efi isn’t mounted. I looked into the ESP partition, but it doesn’t have the file.

So close and yet so far! I really would like to complete this, it’d feel like a major achievement. Thank you @51lieal for this beauty!

This is highly underrated requirement. Why is this not default? Because, you’d want to encrypt everything, even the boot. Why leave it unencrypted? And with the header detached it’s even better.

EDIT:

Interpreting your comment

I continued without grub configuration

I finished the install but, i get the following error and then goes back to Grub:

error: no such evice: some-UUID.
Loading Xen 4.14.3 ...
error: file '/xen-4.14.3.gz' not found.
Loading Linux 5.10.76-1.fc32.qubes.x86_64 ...
error: you need to load the kernel first.
Loading initial ramdisk ...
error: you need to load the kernel first.

Press any key to conttinue...
error: file /grub2/themes/qubess/theme.txt' not found.

Press any key to conttinue...

On going to Rescue QubesOS on the installation drive, after entering the passphrase for /boot & /header i.e. /root (i assume) i get the message You don't have any Linux partitions. Reebooting

Why do you erase the /root partition?