Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: coreutils issue with cp #114

Open
avoidik opened this issue Aug 23, 2024 · 0 comments
Open

[Question]: coreutils issue with cp #114

avoidik opened this issue Aug 23, 2024 · 0 comments
Labels

Comments

@avoidik
Copy link

avoidik commented Aug 23, 2024

Product

Amazon Linux 2

What is your question?

Hello,

I'm trying to understand why amazonlinux:2 is failing when I use colima.

For instance this one fails:

$ docker run -i --rm -u 0:0 -v $(pwd)/src:/asset-input:delegated -v $(pwd)/result:/asset-output:delegated -w /asset-input amazonlinux:2 \
    bash -c 'yum install -y -q util-linux; findmnt /asset-input; cp -au . /asset-output'
Failed to get D-Bus connection: Operation not permitted
TARGET       SOURCE                              FSTYPE   OPTIONS
/asset-input mount0[/temp/test/src] virtiofs rw,relatime
/usr/bin/cp: preserving permissions for '/asset-output/.': No data available
$ echo $?
1

While this one works as expected:

$ docker run -i --rm -u 0:0 -v $(pwd)/src:/asset-input:delegated -v $(pwd)/result:/asset-output:delegated -w /asset-input amazonlinux:2023 \
    bash -c 'yum install -y -q util-linux; findmnt /asset-input; cp -au . /asset-output'

Installed:
  cracklib-2.9.6-27.amzn2023.0.2.x86_64
  gzip-1.12-1.amzn2023.0.1.x86_64
  libdb-5.3.28-49.amzn2023.0.2.x86_64
  libeconf-0.4.0-1.amzn2023.0.3.x86_64
  libfdisk-2.37.4-1.amzn2023.0.4.x86_64
  libpwquality-1.4.4-6.amzn2023.0.2.x86_64
  libsemanage-3.4-5.amzn2023.0.2.x86_64
  libutempter-1.2.1-4.amzn2023.0.2.x86_64
  pam-1.5.1-8.amzn2023.0.4.x86_64
  shadow-utils-2:4.9-12.amzn2023.0.4.x86_64
  systemd-libs-252.23-2.amzn2023.x86_64
  util-linux-2.37.4-1.amzn2023.0.4.x86_64
  util-linux-core-2.37.4-1.amzn2023.0.4.x86_64

TARGET       SOURCE                              FSTYPE   OPTIONS
/asset-input mount0[/Projects/cce/temp/test/src] virtiofs rw,relatime
$ echo $?
0

I have reported similar issue at abiosoft/colima#1115

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant