Pureboot upgrade

Hi
I’ve been in touch with the Purism tech support but they can’t offer much support.

I followed the instructions at:

The coreboot_util.sh script does nothing. No error messages - no output returned.
The script was run in a fedora 38 VM.

Has anyone used this script recently for a pureboot upgrade on a Librem 14 with Qube OS?
It really looks like the script is buggy.

My plan is to first download the firmware image onto a usb drive in a disp VM, then reboot from USB.

Thanks
diver831

To debug bash scripts such as this, turn on the verbose and xtrace options:

$ bash
$ set -vx
$ . ./coreboot_util.sh
. ./coreboot_util.sh
+ . ./coreboot_util.sh
#!/bin/bash
# shellcheck disable=SC2034
# - Ignore unused variable warnings - many variables in this script are used
⋮
# Start of main script
# let's do stuff

check_root
++ check_root
++ [[ 1000 != 0 ]]
++ die 'This script must be run as root; re-run prefixed with sudo'
++ local 'msg=This script must be run as root; re-run prefixed with sudo'
++ '[' -n 'This script must be run as root; re-run prefixed with sudo' ']'
++ echo ''

++ echo -e 'This script must be run as root; re-run prefixed with sudo'
This script must be run as root; re-run prefixed with sudo
++ echo ''

++ kill -s TERM 14957
exit 1
+++ exit 1
$

Use a live USB with PureOS 10.3, then follow these instructions below instead.

There are two ways to upgrade PureBoot using this script:

  1. Flash Coreboot first, then reboot into the PureOS live USB and flash PureBoot over that.
  2. If you already have PureBoot, which you do, and follow the script for upgrading, the script will instead build a firmware image. You can place the firmware image onto another USB drive or other removable media, enter PureBoot on the Librem 14, and upgrade from there using the firmware image.