Skip to content

Commit

Permalink
fix: unsupported GPG key for Debian OSI images
Browse files Browse the repository at this point in the history
This commit fixes an error encountered when mkosi runs apt-get update
during the build of Debian images indicating that the keyring file
provided by debian-archive-keyring package has an unsupported filetype.
The error message is inaccurate as it was discovered with strace that
apt-get executes apt-key, which on its side tries to execute the cmp
command that was actually missing in OSI format container image. The cmp
command is installed with diffutils package (which is arguably an apt
package dependency).

Fix #104
  • Loading branch information
rezib committed May 15, 2023
1 parent 0b319c0 commit b1b2c25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
images build requirements (#102).
- Fix `systemd-nspawn` execution error through `mkosi` in OSI format container
caused by unavailability of DBus system session (#103).
- Fix GPG keys unsupported filetype error when running `apt-get update` on build
of Debian OSI images due to missing `cmp` command (#104).

## [2.0.0] - 2023-05-05

Expand Down
2 changes: 1 addition & 1 deletion conf/images/osi.mkosi
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Format=directory
[Content]
# Docs are useful to get examples from packages and manpages when digging
WithDocs=yes
Packages=mkosi,rpm,dnf,apt,debian-keyring,debootstrap,systemd-container
Packages=mkosi,rpm,dnf,apt,debian-keyring,diffutils,debootstrap,systemd-container

0 comments on commit b1b2c25

Please sign in to comment.