Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest release doesn't seem to boot from USB properly on CS10, but after a chroot and apt upgrade, it does? #279

Open
spoelstraethan opened this issue Jan 13, 2021 · 0 comments
Labels
bug Something isn't working CS10 (chromestick) Affests only the CS10

Comments

@spoelstraethan
Copy link
Contributor

I've used this set of steps to "rescue" installations for ArchLinuxARM and PrawnOS (and other distros like Ubuntu to repair things if there is something funky with the kernel or initramfs and it doesn't boot properly).

# this varies based on whether you've performed a microSD or eMMC or USB installation
# ARCH_DISK=/dev/mmcblk1p
ARCH_DISK=/dev/sda

# use -R otherwise youmight  get a warning about /media/removable/YourDevice being busy, the -R unmounts that first then unmounts the parent device
umount -R "$ARCH_DISK*"
 
mkdir -p /tmp/root
mount ${ARCH_DISK}2 /tmp/root

# If you want to do more customization/upgrades before rebooting
# Taken from: https://wiki.archlinux.org/index.php/chroot#Using_chroot
mount --bind /tmp/root /tmp/root
cd /tmp/root
cp -R /etc/resolv.conf etc
mount -t proc /proc proc
mount --make-rslave --rbind /sys sys
mount --make-rslave --rbind /dev dev
mount --make-rslave --rbind /run run    # (assuming /run exists on the system)
chroot /tmp/root /bin/bash

# I do this from the chroot in ChromeOS so I can update all the packages and detect issues BEFORE fighting with networking or Xorg/Wayland after rebooting
apt update && apt upgrade -y

# or for ArchLinuxARM
# pacman -Syu

# Ctrl+d or `exit` to leave chroot

pkill gpg-agent # started by pacman-key --init and pacman

cd /tmp # get out of root directory to release file handles
umount -R /tmp/root # recursively unmount all the binds/mounts we created
sync
reboot

# Ctrl+U at the Developer Mode screen and now your Chromebit should load PrawnOS.
@SolidHal SolidHal added CS10 (chromestick) Affests only the CS10 bug Something isn't working labels Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working CS10 (chromestick) Affests only the CS10
Projects
None yet
Development

No branches or pull requests

2 participants