canonical / cpc-sbom

CPC maintained tool for generating SBOM for cloud images
GNU General Public License v3.0
7 stars 0 forks source link

feat: Add optional `--update-apt-cache` and `--rootdir-architecture` arguments to force apt cache update #13

Closed philroche closed 1 year ago

philroche commented 1 year ago

To ensure apt cache is present we can either run apt-get update in a mounted filesystem ourselves using chroot or cpc-sbom can now do so using --update-apt-cache. This will require cpc-sbom to be run as root.

--rootdir-architecture optional flag allows us to ensure that the apt cache uses the correct architecture when mounting a non amd64 filesystem.

SamirPS commented 1 year ago

LGTM