Skip to content

Commit

Permalink
Add rebasing info to README
Browse files Browse the repository at this point in the history
  • Loading branch information
samhclark committed Nov 5, 2024
1 parent c756a98 commit 8604af5
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,48 @@

Following Jorge Castro's lead and making my own spin on Silverblue

## Rebasing onto this image

From a normal Silverblue install, or the previous `:40` version, you can rebase onto this image.

The image is signed.
Bootstrap the process by downloading the cosign public key for verification.

```
mkdir -p /etc/pki/cosign
wget -O /etc/pki/cosign/cosign.pub https://raw.githubusercontent.com/samhclark/custom-silverblue/refs/heads/main/cosign.pub
printf '55e391488bbbfe28209e09963edf38a612e306572b2dd72bbcc97402690ff000 /etc/pki/cosign/cosign.pub' | sha256sum --check -
chmod 555 /etc/pki/cosign
chmod 444 /etc/pki/cosign/cosign.pub
sudo chattr +i /etc/pki/cosign/cosign.pub
```

Edit your existing `/etc/containers/policy.json` to include a section like this:

```json
{
"transports": {
"docker": {
"ghcr.io/samhclark/custom-silverblue:40": [{"type": "insecureAcceptAnything"}],
"ghcr.io/samhclark/custom-silverblue": [
{
"type": "sigstoreSigned",
"keyPath": "/etc/pki/cosign/cosign.pub",
"signedIdentity": "exactRepository",
"dockerRepository": "ghcr.io/samhclark/custom-silverblue"
}
]
}
}
}
```

Then, it's time to rebase

```
rpm-ostree rebase ostree-image-signed:registry:ghcr.io/samhclark/custom-silverblue:41
```

## Google Linux Signing Keys

Google does something weird with their keys for signing RPMs.
Expand Down

0 comments on commit 8604af5

Please sign in to comment.