From 5aba2541145bd57dd09531d3909c3304eb33a638 Mon Sep 17 00:00:00 2001 From: Malte Janduda Date: Tue, 20 Jun 2023 23:59:04 +0200 Subject: [PATCH] exporting keyring in asc format for apt/trusted.gpg.d directory --- builder/bootstrap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/bootstrap b/builder/bootstrap index 2bbda87..4699149 100755 --- a/builder/bootstrap +++ b/builder/bootstrap @@ -13,7 +13,7 @@ mount -t tmpfs -o size=2G tmpfs "$chroot_dir" chmod 755 "$chroot_dir" container=lxc debootstrap --keyring "$keyring" --arch "$arch" --variant minbase "$version" "$chroot_dir" "$repo" bookworm || (cat "$chroot_dir/debootstrap/debootstrap.log"; false) -cp "$keyring" "$chroot_dir/etc/apt/trusted.gpg.d/keyring.gpg" +gpg --keyring "$keyring" --no-default-keyring --export -a > "$chroot_dir/etc/apt/trusted.gpg.d/keyring.asc" echo "deb $repo $version main" > "$chroot_dir/etc/apt/sources.list" find "$chroot_dir/proc" "$chroot_dir/sys" "$chroot_dir/dev" "$chroot_dir/run" "$chroot_dir/tmp" -mindepth 1 -delete