just to point out, both solutions do the same thing!
i jus try to give commands exact since you didnt sound too familar with shell commands. for ex:
you point out
cp /usr/lib/xen/boot/stubdom-linux-rootfs > stubdom-linux-rootfs.orig
and you changed to a qvm-copy-to-vm command. what you missed is the cp was meant to jus backup the original file which is always good when you are hacking things! it wasnt to copy to the vm! ps: the
> im sure was an accident by unman.
you should try to understand the commands and procedure as unman describes. his github describes the issue better than i could. genarally you want to avoid copy + paste commands from internet random people like me. it is better to understand the issue and how to resolve the issue then just running the script
unman solution works, i think the diff is patch_init uses absolut path for the sed append, so if you didnt put init_patch at right spot, it wont patch. this is what i mean with understanding the goals so you can see minor issues. we are human and overlook small things some times.