Commit dc913ec
authored
Fix GPG keyring location for systemd-sysupdate (#155)
* fix: move GPG key to systemd-sysupdate expected location
systemd-sysupdate only checks global keyrings for signature verification:
- /usr/lib/systemd/import-pubring.gpg (system)
- /etc/systemd/import-pubring.gpg (admin)
The previous location (/etc/sysupdate.alloy.d/alloy.gpg) was not used by
systemd-sysupdate. This change moves the key to the correct location so
SHA256SUMS.gpg signature verification works.
Implements: GHO-59
* feat: implement dynamic GPG keyring merge for systemd-sysupdate
Instead of statically placing the GPG key at /etc/systemd/import-pubring.gpg
(which would override the system keyring), implement a dynamic merge approach:
- Store Alloy signing key at /etc/systemd/alloy-sysext.gpg.pub
- Add merge script at /usr/local/bin/sysupdate-merge-keyring.sh that:
- Checks for .pgp (newer systemd) before .gpg (legacy)
- Copies system keyring from /usr/lib/systemd/ to /etc/systemd/
- Imports Alloy key using gpg to merge keyrings
- Cleans up temporary GPG home directory
- Add sysupdate-import-pubring.service that runs before systemd-sysupdate
This ensures the Alloy signing key is always appended to whatever keys
come with the base image (e.g., Fedora/Ubuntu legacy keys), even if
the base image is updated with different keys.1 parent 7bf7c43 commit dc913ec
2 files changed
Lines changed: 89 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
379 | 379 | | |
380 | 380 | | |
381 | 381 | | |
382 | | - | |
| 382 | + | |
383 | 383 | | |
384 | 384 | | |
385 | 385 | | |
| |||
438 | 438 | | |
439 | 439 | | |
440 | 440 | | |
441 | | - | |
| 441 | + | |
442 | 442 | | |
443 | 443 | | |
444 | 444 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
64 | 67 | | |
65 | | - | |
| 68 | + | |
66 | 69 | | |
67 | 70 | | |
68 | 71 | | |
| |||
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
99 | 165 | | |
100 | 166 | | |
101 | 167 | | |
| |||
400 | 466 | | |
401 | 467 | | |
402 | 468 | | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
403 | 488 | | |
404 | 489 | | |
405 | 490 | | |
| |||
0 commit comments