Skip to content

Instantly share code, notes, and snippets.

@RobCranfill
Created December 16, 2020 19:30
Show Gist options
  • Save RobCranfill/75119d6d61dd1b9fc18c140b87ad5109 to your computer and use it in GitHub Desktop.
Save RobCranfill/75119d6d61dd1b9fc18c140b87ad5109 to your computer and use it in GitHub Desktop.
Update RPi boot SSD after kernel update
#!/bin/bash
# (This isn't really a shell script - you can't run 'sudo' in a script, I don't think.)
#
# Boot/kernel problems 19/Oct/2020
# (On pi3, which boots from SD card, but then mounts the SSD to /boot,
# resulting in the wrong partition gettting updated.)
#
# SOLUTION:
# https://www.raspberrypi.org/forums/viewtopic.php?t=262963
sudo umount /boot
sudo mount /dev/mmcblk0p1 /boot
sudo apt install --reinstall raspberrypi-bootloader
sudo reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment