Skip to content

Commit

Permalink
exporting keyring in asc format for apt/trusted.gpg.d directory
Browse files Browse the repository at this point in the history
  • Loading branch information
MalteJ committed Jun 20, 2023
1 parent 623b339 commit 5aba254
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5aba254

Please sign in to comment.