chainguard-dev / apko

Build OCI images from APK packages directly without Dockerfile
https://apko.dev
Apache License 2.0
1.21k stars 125 forks source link

Top level /opt missing from installed db with apko; but apk-tools creates it #1375

Open xnox opened 3 weeks ago

xnox commented 3 weeks ago
$ make dev-container
[sdk] ❯

apk update
apk --allow fetch wolfi-baselayout ca-certificates-bundle
apk --allow --root apkroot/ --initdb add wolfi-baselayout-20230201-r15.apk ca-certificates-bundle-20241010-r1.apk

[sdk] ❯ grep -C1 F:opt apkroot/lib/apk/db/installed 
Z:Q1nQYrr/8XuouaEhXExRSFE01QnZE=
F:opt
F:root

[sdk] ❯ grep -C1 F:opt /lib/apk/db/installed 
[sdk] ❯ 

Somehow F:opt is present in apk-tools created chroot; but not in apko created chroot.