Skip to content

Instantly share code, notes, and snippets.

@pojntfx
Last active February 16, 2026 22:33
Show Gist options
  • Select an option

  • Save pojntfx/0012d023c2ef50a392d3a92ff61f41ec to your computer and use it in GitHub Desktop.

Select an option

Save pojntfx/0012d023c2ef50a392d3a92ff61f41ec to your computer and use it in GitHub Desktop.
Build GNOME OS with custom kernel and install changes to local system
#!/bin/bash
make -C files/boot-keys clean
make -C files/boot-keys IMPORT_MODE=local
bst --no-strict build gnomeos/live-image.bst
bst workspace open freedesktop-sdk.bst:components/linux.bst --directory ../linux/
# Now make the changes you want to make to `../linux/`
bst --no-strict build freedesktop-sdk.bst:components/linux.bst # No need to `cd ../linux` - BuildStream figures that out for you automatically
# To rollout the kernel on your local system, either run this (you'll need your disk recovery key when you reboot):
utils/run-sysupdate-repo.sh --devel --same-version
run0 utils/enable-local-repo.sh --local
updatectl update host@l.1
# Now, reboot and choose version `l.1`. It will prompt you to enter the TPM PIN - here you will need to enter the recovery key instead despite what the prompt says!
# Or run this to build a fresh ISO to test with:
bst artifact checkout gnomeos/live-image.bst --directory ./iso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment