pmem / run_qemu

A script to create bootable OS images, and run qemu with a locally built kernel.
Creative Commons Zero v1.0 Universal
58 stars 22 forks source link

run_qemu: handle --cmdline more early #44

Closed zhijianli88 closed 9 months ago

zhijianli88 commented 9 months ago

Sometimes, some advanced users already have their own kernel and VM image, they just want to get a valid qemu command line for referencing.

Previously, this script would try to build qemu and kernel, and then build a suitable initrd for a real vm startup, which is usually not required by the --cmdline option.

Move prepare_qcmd ahead so that --cmdline can be handled before building any source.

zhijianli88 commented 9 months ago

close it, because we can achieve it by --cmdline -r none