[REQ] use temp rootfs for deb install to preserve original image configs
What kind of request is this?
Improvement of existing experience
What is your request or suggestion?
with #908, we are now respecting spec configs like (noreplace) and symlinks for RPMs for distroless. can we confirm if this is an issue in deb distroless ecosystem too?
Are you willing to submit PRs to contribute to this feature request?
- [ ] Yes, I am willing to implement it.
Investigated modifying the /etc/ssl/openssl.cnf with the docker.io/openpolicyagent/opa:0.46.0 base image and copa replaced it to the default version. Based on debian.org, dpkg will only update a configuration file if it has not been modified by the user. There does not seem to be an equivalent to noreplace in Debian https://github.com/goreleaser/nfpm/discussions/591#discussioncomment-4401480. However, since we are diffing from the tooling image, it is likely that it is downloading the default conffile, similar to the rpm issue.
thanks! sounds like we'll need to do similar temp rootfs changes for debian distroless. i'll update the title