Skip to content

Commit e29f6a7

Browse files
committed
Fix keyring copy on Debian 13/trixie
It seems as though the `/usr/share/keyrings/debian-archive-keyring.gpg` on Debian 13/trixie is actually a symlink to `debian-archive-keyring.pgp` in the same directory. This means that the `cp -a` in `mkimage` copies the symlink and not the actual keyring, resulting in the following error: E: specified keyring file (/<tmpdir>/debian-archive-keyring.gpg) not found Using `cp -aL` ensures the file that is symlink source actually gets copied.
1 parent 9c112ba commit e29f6a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mkimage

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ exec 2> >(tee -ia "$LOGFILE" >&2)
1717

1818
DEBOOTSTRAP_DIR=$(mktemp -d)
1919
cp -a /usr/share/debootstrap/* "$DEBOOTSTRAP_DIR"
20-
cp -a /usr/share/keyrings/debian-archive-keyring.gpg "$DEBOOTSTRAP_DIR"
20+
cp -aL /usr/share/keyrings/debian-archive-keyring.gpg "$DEBOOTSTRAP_DIR"
2121
cp -a "${ROOT}/debootstrap/"* "${DEBOOTSTRAP_DIR}/scripts"
2222

2323
KEYRING=$DEBOOTSTRAP_DIR/debian-archive-keyring.gpg

0 commit comments

Comments
 (0)