install chrome os flex from linux without USB
sudo dnf install cgpt pv
find latest brunch release branch at this time its r126
https://github.com/sebanc/brunch/tree/r126
grab https://github.com/sebanc/brunch/blob/r126/scripts/chromeos-install.sh
get rid of these lines from install_singleboot()
7)
source_start=0
image="$(dirname $0)/rootc.img"
size=$(du --apparent-size -B 512 $image | sed 's/\t.*//g')
;;
12)
source_start=0
if [ -z legacy_boot ]; then image="$(dirname $0)/efi_secure.img"; else image="$(dirname $0)/efi_legacy.img"; fi
size=$(du --apparent-size -B 512 $image | sed 's/\t.*//g')
;;
for dualboot maybe similarly from install_dualboot() 7) and 12) options , haven't tested
download chrome os flex image
https://chromiumdash.appspot.com/serving-builds?deviceCategory=ChromeOS%20Flex
or direct link via web or wget
wget https://dl.google.com/chromeos-flex/images/latest.bin.zip
unzip latest.bin.zip or 7z x latest.bin.zip
Archive: latest.bin.zip
inflating: chromeos_15393.58.0_reven_recovery_stable-channel_mp-v2.bin
partition
sudo chromeos-install.sh chrome.img /dev/nvme0n1
this will erase disk completly
ROOT-A is copied to partition 3,5 and KERN-B to 2,4 ; KERN-B and KERN-A looks identical
for postinstall fix we need to mount /dev/nvme0n1p12 and modify efi/boot/grub.cfg to match root=UUID=xxx of the cros partition wtih label root-A
i did manually there is postinstall script here https://github.com/imperador/chromefy/blob/master/croissant.sh
sudo bash fixuuid.sh
# use your install disk name
DST=/dev/nvme0n1
# grab name of 12th EFI-SYSTEM partition
EFIPART=`flock "${DST}" sfdisk -lq "${DST}" 2>/dev/null | grep "^""${DST}""[^:]" | awk '{print $1}' | grep [^0-9]12$`
mount "$EFIPART" /mnt
OLD_UUID=`cat /mnt/efi/boot/grub.cfg | grep -m 1 "PARTUUID=" | awk -v FS="(PARTUUID=)" '{print $2}' | awk '{print $1}'`
# get PARTUUID of ROOT-A which is third partition
PARTUUID=`flock "${DST}" sfdisk --part-uuid "${DST}" 3`; sed -i "s/$OLD_UUID/$PARTUUID/" /mnt/efi/boot/grub.cfg
sync; umount /mnt 2>/dev/null
echo "EFI: Partition UUID $OLD_UUID changed to $PARTUUID"
some download stuck at 99.99% , merge them regardless got to ~/.xdm-app-data/Data/*.state cat dec.py import os import re # Define the pattern to extract the segment number pattern = re.compile(r'seg-(\d+)-v1-a1\.ts') # Get the current working directory current_directory = os.getcwd() # List to hold tuples of (segment_number, filename) files_with_segments = [] # Iterate through files in the current directory for filename in os.listdir(current_directory): match = pattern.search(filename) if match: # Extract the segment number as an integer segment_number = int(match.group(1)) # Add the tuple (segment_number, filename) to the list files_with_segments.append((segment_number, filename)) # Sort the list by the segment number (numerical sort) files_with_segments.sort(key=lambda x: x[0]) # Open the filelist.txt for writing with open('filelist.txt', 'w') as filelist: for _, filename in files_with_segments: file...
Comments
Post a Comment