Skip to content
This repository was archived by the owner on Feb 24, 2020. It is now read-only.
This repository was archived by the owner on Feb 24, 2020. It is now read-only.

overlayfs does not support rename operations #303

@serverwentdown

Description

@serverwentdown

https://github.com/containers/build/blob/master/examples/mongodb/build-mongodb.sh

Importing MongoDB's GPG keys fail because rename operations are not supported by overlayfs.

Beginning build with an empty ACI
Setting name of ACI to example.com/mongodb
Adding dependency "quay.io/sameersbn/ubuntu"
Running: [apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10]
Downloading quay.io/sameersbn/ubuntu: [========================] 69.5 MB/69.5 MB
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.dFBktScdB2 --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv 7F0CEB10
gpg: requesting key 7F0CEB10 from hkp server keyserver.ubuntu.com
gpg: renaming `/etc/apt/trusted.gpg' to `/etc/apt/trusted.gpg~' failed: Invalid argument
gpg: error writing keyring `/etc/apt/trusted.gpg': file rename error
gpg: key 7F0CEB10: public key "[User ID not found]" imported
gpg: error reading `[stream]': file rename error
gpg: Total number processed: 0
gpg:               imported: 1  (RSA: 1)
run: non-zero exit code: 2
Ending the build

A potential solution to this would be to run acbuild squash on the container before doing any rename operations, but that command hasn't been implemented (#18) yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions