-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, Dec 06, 2016 at 03:17:37PM -0800, justin.h.holg...@gmail.com wrote:
> On Tuesday, December 6, 2016 at 1:52:00 PM UTC-8, Marek Marczykowski-Górecki 
> wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA256
> > 
> > On Tue, Dec 06, 2016 at 12:18:09PM -0800, justin.h.holg...@gmail.com wrote:
> > > My primary OS is Ubuntu and it's likely to stay that way (I need 
> > > vagrant/virtualbox for work), but I'd like to spend some time using Qubes 
> > > when I can. 
> > > 
> > > In my ideal setup, my laptop would boot into Ubuntu by default, but have 
> > > a grub entry to switch over to the Qubes bootloader on demand.
> > > 
> > > This setup isn't covered by https://www.qubes-os.org/doc/multiboot/ so I 
> > > figured I'd give it a shot myself.
> > > 
> > > I installed Qubes, but elected not to make the install device bootable 
> > > (since I want to keep Ubuntu in charge of booting). Then I found the 
> > > Qubes bootloader partition at /dev/sda7 and attempted to add a 
> > > chainloader entry to /etc/grub.d/40_custom like this:
> > > 
> > > menuentry "Qubes Chainloader" {
> > >   insmod chain
> > >   insmod ext2
> > >   set root=(hd0,gpt7)
> > >   chainloader /EFI/qubes/xen-4.6.1.efi
> > > }
> > > 
> > > I can select 'Qubes Chainloader' at the grub menu, but it just flashes a 
> > > message (I think it's something like "Loading xen-4.6.1.efi") for the 
> > > briefest instant before dumping me back into grub. For what it's worth, I 
> > > know it's at least finding the .efi file because it no longer complains 
> > > that it can't.
> > > 
> > > TL/DR: what can I put in /etc/grub.d/40_custom to chainload the Qubes 
> > > /boot partition at /dev/sda7?
> > 
> > Is /dev/sda7 your ESP? If so, remove 'set root' line.
> 
> I'm not sure it qualifies as "the" ESP (I don't know EFI very well), but 
> /dev/sda7 holds the Qubes /boot partition. It's not the partition that boots 
> by default; that would be /dev/sda1.
> 
> If I do remove the setroot line, how will grub know that xen.efi is on 
> /dev/sda7?

It will not know that. I think to work with this, you need to copy/move
EFI/qubes directory into your primary EFI partition.

- -- 
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCAAGBQJYTFMZAAoJENuP0xzK19csfyEH/RGH5bu9bnb7YGz8gdzTGuZw
WFIisMOnjK9s9EyVber6XZTuo9ENbPY0picx9e/Wzhx5RfRES6z38C4aUsDcnHo2
1yAZCymxcAST/1qdRbboe4lLm+Ii76bDV9+8qBuZz4nW0kvqnMfoa0kZd2n/cIho
o98/tfAyGpvcFKFFGnM8SjuyvtlsnamA+0VydhqXT5eY4RHVFzxQRHEN1i5nJPSA
zVo3wJsUwdFrdW9UKZY6DlCKXFzAI41i8pMI29D/ELDffj55lQJZmyvWfzcjbr6P
tgAoRXToJvOu4Bxg/kMnf5Z0CEsOePz1JVwkX3/DJRDEqcAyXGNEVlSYuhxbbOY=
=+4kN
-----END PGP SIGNATURE-----

-- 
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 qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/20161210191017.GO16264%40mail-itl.
For more options, visit https://groups.google.com/d/optout.

Reply via email to