Skip to content

Instantly share code, notes, and snippets.

@kstawiski
Created February 11, 2022 12:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kstawiski/74b4a464e91dbc0b9215a3400fb7885d to your computer and use it in GitHub Desktop.
Save kstawiski/74b4a464e91dbc0b9215a3400fb7885d to your computer and use it in GitHub Desktop.
Create ChromeOS image for Grub2win on linux server
#!/bin/bash
wget https://github.com/sebanc/brunch/releases/download/r97-stable-20220121/brunch_r97_stable_20220121.tar.gz
# Chrome OS image: https://cros-updates-serving.appspot.com/
wget https://dl.google.com/dl/edgedl/chromeos/recovery/chromeos_14324.62.0_rammus_recovery_stable-channel_mp-v2.bin.zip
sudo apt install -y pv cgpt
tar xvzf brunch_*.tar.gz
unzip chromeos_*.bin.zip
sudo bash chromeos-install.sh -src chromeos_*.bin -dst chromeos.img -s 32 # 32 GB image
# Clean:
rm -v !("chromeos.img")
@kstawiski
Copy link
Author

Grub configuration:

img_part=/dev/nvme0n1p3
img_path=/ChromeOS/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 options=enable_updates,advanced_als loop.max_part=16 img_part=$img_part img_path=$img_path
initrd (loop,gpt7)/initramfs.img

Place chromeos.img to X:\ChromeOS\chromeos.img

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment