08-06-2020, 12:27 PM
(06-16-2020, 01:20 AM)longpanda Wrote: Currently NOT, but in my plan.
BTW, what distributions only support img format (without ISO file)?
or which img file you want to boot?
I want to add a grub menu like below to boot a Chrome OS .img created by the Brunch project to port Official Chrome OS to normal pc
The .img consists of a 27 partitions disk image which represent a real Chrome OS boot drive
https://github.com/sebanc/brunch
Code:
menuentry "ChromeOS (boot from disk image)" {
img_part=/dev/sdb1
img_path=/home/chromeos.img
search --no-floppy --set=root --file $img_path
loopback loop $img_path
linux (loop,gpt7)/kernel boot=local noresume noswap loglevel=7 disablevmx=off \
cros_secure cros_debug loop.max_part=16 img_part=$img_part img_path=$img_path
initrd (loop,gpt7)/initramfs.img
}