Skip to content

Commit

Permalink
fix: run mmdebstrap without apt sandbox user
Browse files Browse the repository at this point in the history
if the config repo is cloned with umask such that the keyring.gpg file is not world readable, then trying to read it with the _apt user fails
therefore, let's disable apt sandboxing in mmdebstrap as everything is containerized anyways
  • Loading branch information
nkraetzschmar committed Jan 9, 2025
1 parent 4f27675 commit aa4d237
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 @@ -11,7 +11,7 @@ output="$5"
chroot_dir="$(mktemp -d)"
mount -t tmpfs -o size="$TEMPFS_SIZE" tmpfs "$chroot_dir"
chmod 755 "$chroot_dir"
mmdebstrap --mode unshare --keyring "$keyring" --arch "$arch" --variant required --include ca-certificates --skip check/qemu --skip cleanup/apt/lists "$version" "$chroot_dir" "$repo"
mmdebstrap --mode unshare --keyring "$keyring" --arch "$arch" --variant required --include ca-certificates --aptopt='APT::Sandbox::User "root"' --skip check/qemu --skip cleanup/apt/lists "$version" "$chroot_dir" "$repo"

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"
Expand Down

0 comments on commit aa4d237

Please sign in to comment.