Last active
November 15, 2021 19:19
-
-
Save spoelstraethan/53c1b7b188845ac9f0957d70be5cfab5 to your computer and use it in GitHub Desktop.
ChromeOS Brunch easy CLI extract and updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download your recovery from https://cros-updates-serving.appspot.com | |
# Ctrl+Shift+T or open a Crosh Window and type `shell` | |
# Without arguments `cd` takes you to your $HOME directory | |
cd | |
# | |
cd Downloads/ | |
ls | |
# Create a temporary directory and capture the name to a variable so we can reuse | |
MOUNTZIP=$(mktemp -d -p /tmp -t XXXXXX) | |
fuse-zip chromeos_*.bin.zip $MOUNTZIP | |
# copies/extracts the recovery from the zip | |
cp $MOUNTZIP/* . | |
# umount requires sudo | |
sudo umount $MOUNTZIP | |
# If under /tmp the directory will disappear on a reboot, but you can clean it up yourself | |
# This shouldn't require -rf because when the zip is unmounted the folder should be empty | |
rm -r $MOUNTZIP | |
# sudo /usr/sbin/chromeos-update -r ./chromeos_<Tab> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment