Open aqn104 opened 2 years ago
I don't see anything wrong. The part to be copied into grub is there, above the 'If you have ubuntu/mint installed' line. The 'echo....sudo update-grub' part below that is to be used in the terminal only if you are working in ubuntu/mint that is installed to your hard drive.
I just tried to install to Chrome OS by following steps in the given readme but there was not Chrome OS.grub.txt where there was img so I don't know what to do.Please someone help
Ok
Following Sebanc installation instruction from this website below: https://github.com/sebanc/brunch/wiki/Detailed-installation-instructions-from-Windows
"To boot directly from this image file, add the lines between stars to either:
menuentry "ChromeOS" --class "brunch" { rmmod tpm img_part=/dev/sda8 img_path=/chromos.img 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 loop.max_part=16 img_part=$img_part 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 loop.max_part=16 img_part=$img_part img_path=$img_path fi initrd (loop,7)/lib/firmware/amd-ucode.img (loop,7)/lib/firmware/intel-ucode.img (loop,7)/initramfs.img }
menuentry "ChromeOS (settings)" --class "brunch-settings" { rmmod tpm img_part=/dev/sda8 img_path=/chromos.img search --no-floppy --set=root --file $img_path loopback loop $img_path source (loop,12)/efi/boot/settings.cfg linux (loop,7)/kernel boot=local noresume noswap loglevel=7 options= chromeos_bootsplash= edit_brunch_config=1 \ cros_secure cros_debug loop.max_part=16 img_part=$img_part img_path=$img_path initrd (loop,7)/lib/firmware/amd-ucode.img (loop,7)/lib/firmware/intel-ucode.img (loop,7)/initramfs.img }
If you have Ubuntu or Linux Mint installed, you can create the grub config automatically by running the below command:
echo -e '#!/bin/sh\nexec tail -n +3 $0\n\n\n\n'"$(sed '1,4d;$d' $(realpath "/root/tmpmount/chromos.img").grub.txt)" | sudo tee /etc/grub.d/99_brunch && sudo chmod 0755 /etc/grub.d/99_brunch && sudo update-grub
Copy the above grub menu entry in grub customizer"