Claudia:
Claudia:
# tar -C / -cvzf ~/boot-backup.tar.gz boot/
# qubes-dom0-update grub2-efi
# chmod ugo+x /etc/grub.d/10_linux
# echo GRUB_CMDLINE_LINUX=\"$(cat /boot/efi/EFI/qubes/xen.cfg | grep
kernel | cut -d ' ' -f 4- | head -n 1)\" >> /etc/default/grub
# grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
# efibootmgr -c -d /dev/sda -p 1 -L "Fedora-Grub" -l
"\EFI\fedora\grubx64.efi"
Amendment: Actually, you might have to install grub2-efi-modules as well
and run grub2-install. I had the prebuilt
/boot/efi/EFI/fedora/grubx64.efi working when grub2-efi-modules was
installed, but after I uninstalled it and deleted /boot/grub2/modules,
it apparently stopped working (complained about missing commands), even
though grub2-efi is supposed to be self-contained and is not supposed to
require grub2-efi-modules. I'm not sure -- I have to do more testing.
Just leaving this here as a note for now.
From what I can tell, it looks like fedora's prebaked grubx64.efi only
contains a minimal set of modules, which is fine for booting regular
linux/Qubes without Xen, but is missing the modules necessary for Xen
and chainloading. So the original instructions should work as long as
you're okay with using two different loaders.
Your UEFI implementation should let you choose which loader to use
(xen.efi or grubx64.efi), so you can always boot from the original
xen.efi loader (I recommend keeping that as the default boot option). In
other words, you can just select the Fedora-Grub (grubx64.efi) boot
option in BIOS when you want to troubleshoot hardware without Xen, and
select Qubes (xen.efi) otherwise.
When you're finished troubleshooting, you can `dnf remove grub2-efi` and
(if necessary) `rm -r /boot/efi/EFI/fedora`, and use efibootmgr to
delete the Fedora-Grub boot entry from BIOS.
If you want to be able to boot both Xen and non-Xen versions from grub,
you'll have to use grub2-efi-modules and grub2-install instead of the
prebaked grubx64.efi. I think the Qubes installer does this if it
detects other OSes or other versions of Qubes. This also makes it
convenient to choose the Xen/kernel version and edit the command line at
boot. This requires Xen 4.9 and Grub 2.02, which I guess means you
probably need to be using the unstable repo? (I haven't quite worked out
the manual setup for this yet, but it must be possible because the
installer somehow does it automatically.)
-------------------------------------------------
This free account was provided by VFEmail.net - report spam to [email protected]
ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!
15GB disk! No bandwidth quotas!
Commercial and Bulk Mail Options!
--
You received this message because you are subscribed to the Google Groups
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/qubes-users/652725ac-ee7f-56ac-f4f5-3ead933dbdbf%40vfemail.net.