Hi I’m new to OpenSUSE but after a few flight hours I like it. A lot to learn coming from Debian.
I’ve installed Slowroll on / and have /home on a separate ext4 partition.
On /home I have a boot image file chromeos.img with ChromeOS.
I’ve created and booted this image file in Debian on the same laptop. And I moved the image file and the same grub.d entry file to OpenSUSE. Of course did the grub update.
To my surprise, the image cannot be booted by grub on OpenSUSE.
I can boot OpenSUSE and Windows, however when I choose ChromeOS, I get grub-core errors of which 2 related to not to find the boot image file on /home:
- grub-core… search.c:316 … no such device … /home/ed/Brunch/chromeos.img
- grub-core/fs/btrfs.c:2159: file ‘/home/ed/Brunch/chromeos.img’ not found
Based on reference to btrfs.c in grub error 2 it seems that OpenSUSE grub expects the image file to be located in / and cannot be on another partition with ext4.
Any help is appreciated.
Please find below the grub entry file script:
#!/bin/sh
exec tail -n +3 $0
menuentry 'Brunch' --class 'brunch' {
rmmod tpm
img_path="/home/ed/Brunch/chromeos.img"
img_uuid="84ba7bbb-66ee-4bef-88dd-1c7fe16de3d3"
search --no-floppy --set=root --file ${img_path}
loopback loop ${img_path}
source (loop,12)/efi/boot/settings.cfg
if [ -z ${verbose} ] -o [ ${verbose} -eq 0 ]; then
linux (loop,7)${kernel} boot=local noresume noswap loglevel=7 options=${options} chromeos_bootsplash=${chromeos_bootsplash} ${cmdline_params} \
cros_secure cros_debug img_uuid=${img_uuid} img_path=${img_path} \
console= vt.global_cursor_default=0 brunch_bootsplash=${brunch_bootsplash} quiet
else
linux (loop,7)${kernel} boot=local noresume noswap loglevel=7 options=${options} chromeos_bootsplash=${chromeos_bootsplash} ${cmdline_params} \
cros_secure cros_debug img_uuid=${img_uuid} img_path=${img_path}
fi
initrd (loop,7)/lib/firmware/amd-ucode.img (loop,7)/lib/firmware/intel-ucode.img (loop,7)/initramfs.img
}