Skip to content

Commit b80d949

Browse files
committed
Now slightly tested
1 parent 038c6a6 commit b80d949

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ By default, this template uses the base image `quay.io/almalinuxorg/atomic-deskt
2222

2323
To switch images, change the `FROM` line in the [Dockerfile](Dockerfile). If your image use a different signing key, download the new Cosign public key and specify its name in the `upstream-public-key` parameter in `.github/workflows/build.yml`, or remove the parameter to disable key verification.
2424

25-
### Setting up Cosign (Optional, highly recommended)
25+
### Set up container signing (Optional, highly recommended)
2626

2727
Container signing is important for end-user security and is fully supported by
2828
the CI. By default, the CI will check the signature of your base image to make
@@ -91,23 +91,28 @@ Build or download the ISO for your image, boot into it and follow the installati
9191
### Switching from another image
9292

9393
> [!CAUTION]
94-
> This is entirely unsupported and may not work at all.
94+
> This is entirely unsupported and may not work at all. In fact, it probably doesn't
95+
> work at all and it's a terrible idea to even try. Don't do this.
9596
96-
If you're already running a bootc image and wish to change to this one, you may be able to do this via `bootc switch`. As you won't have the correct signing key or configuration, you'll have to run it twice:
97+
If you're already running a bootc image and wish to change to this one, you may be able to do this via `bootc switch`. As you won't have the correct signing key or configuration, you'll have to disable it first:
9798

9899
```sh
100+
sudo cp /etc/containers/policy.json /etc/containers/policy.json.old
101+
sudo echo '{"default": [{"type": "insecureAcceptAnything"}]}' > /etc/containers/policy.json
99102
sudo bootc switch --transport registry <REGISTRY>/<IMAGE_PATH>/<IMAGE_NAME>:latest
100103
```
101104

102105
(fill in `<REGISTRY>/<IMAGE_PATH>/<IMAGE_NAME>` with your actual bootc image location)
103106

104-
After this, reboot into your new image. Now we can fix it to enforce key verification:
107+
After this, reboot into your new image. Now we can fix it to enforce key verification
108+
with the new image's `policy.json`:
105109

106110
```sh
107-
sudo bootc switch --mutate-in-place --transport registry --enforce-container-sigpolicy <REGISTRY>/<IMAGE_PATH>/<IMAGE_NAME>:latest
111+
sudo cp /usr//etc/containers/policy.json /etc/containers/policy.json
108112
```
109113

110-
Now your image should be able to update itself correctly.
114+
Now your image should be able to update itself correctly. Or not at all. Remember,
115+
this is entirely unsupported!!
111116

112117
### Upgrading your system
113118

0 commit comments

Comments
 (0)