Skip to content

Instantly share code, notes, and snippets.

@porteusconf
Forked from sj-dan/crosflex_downloader.sh
Last active August 12, 2025 14:59
Show Gist options
  • Select an option

  • Save porteusconf/b6707b315fb8f45c0e0521090700bdca to your computer and use it in GitHub Desktop.

Select an option

Save porteusconf/b6707b315fb8f45c0e0521090700bdca to your computer and use it in GitHub Desktop.
Script to fetch and download the latest version of the Chrome OS Flex image

Better than forked gist here is Alternative method below...

#!/bin/bash

URLs=$(curl "https://dl.google.com/dl/edgedl/chromeos/recovery/cloudready_recovery2.json" \
-s --output - | \
grep "^.*\"url\".*$" | \
sed "s/.*\"url\": \"\(.*\)\".*$/\1/g")

printf "\nPick which channel to download your image from. Channel name is near the end of the URL.\n\n"

select URL in $URLs;
 do
	if [[ $URL != "" ]]; then
 		printf "\nDownloading now...\n\n"
 		curl -L -C - -O $URL && break
	else
		printf "\nInvalid selection, please pick one of the above displayed numbers.\n\n"	
	fi
done
printf "\nFinished downloading!\n"

ALTERNATIVE method using chromium-provided recovery.sh script

 cd /var/tmp  ### or some working dir with several gig of free space 

 mkdir $pwd/tmp.crosrec

 WORKDIR=$pwd/tmp.crosrec  

 cd $WORKDIR

  curl "https://chromium.googlesource.com/chromiumos/user-recovery-tools/+/master/linux/recovery.sh?format=TEXT"  -s --output - | base64 --decode > recovery.sh

  ./recovery.sh --config "https://dl.google.com/dl/edgedl/chromeos/recovery/cloudready_recovery2.conf"
@porteusconf
Copy link
Author

Info below about 3 versions available in 2025. (was translated from a russian zeroday website.. hard to find this info elsewhere ;-)

  • S (Stable, stable) — devices are automatically updated to the next stable version every month. Newer than LTC which is newer than LTS.

  • LTC (Long-term support candidate, long-term support candidate) — devices receive LTS functions 3 months before the release of the version on LTS. Devices are automatically updated to the next version of LTC. May have same or newer version of chromeos and chrome as LTS.

  • LTS (aka LTR) (Long-term support, long-term support) — devices are automatically updated to the next version of LTS every 6 months.

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