For 2: The easy fix is not to compress the kernel with squashfs (just like you do for the 'previous' kernel), that removes the need for loopback. But I suspect there's a reason you did it this way (saving space?) which I don't know.
After these two fixes it seems to work fine (I worked around it by not using pygrub but hardcoding a kernel and ramdisk, so updates won't work.)
Actual behavior
Using <class 'grub.GrubConf.Grub2ConfigFile'> to parse /boot/grub/grub.cfg
WARNING:root:Unknown image directive search.fs_label
WARNING:root:Unknown image directive loopback
Version (k3OS / kernel) k3os version v0.10.2 xen-utils-4.9
Architecture x86_64
Describe the bug I'm trying to boot K3OS with Xen using PyGrub. K3OS uses this grub stanza:
Both search.fs_label and loopback aren't supported by PyGrub.
There's two routes to fix this:
What route do you prefer?
For 1: https://www.gnu.org/software/grub/manual/grub/html_node/search.html says search.fs_label is just an alias, so that should be a trivial fix.
For 2: The easy fix is not to compress the kernel with squashfs (just like you do for the 'previous' kernel), that removes the need for loopback. But I suspect there's a reason you did it this way (saving space?) which I don't know.
After these two fixes it seems to work fine (I worked around it by not using pygrub but hardcoding a kernel and ramdisk, so updates won't work.)
Actual behavior