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

mkosi re-creates the $PWD directory structure inside Fedora/CentOS/RHEL/etc. images #2047

Closed
NoisyCoil opened this issue Nov 6, 2023 · 3 comments

Comments

@NoisyCoil
Copy link

NoisyCoil commented Nov 6, 2023

As per title. If mkosi is run from, say, /home/username/tmp/mkosi, then the same directory structure is created inside the image. To reproduce:

$ mkdir -p /home/username/tmp/mkosi && cd /home/username/tmp/mkosi

$ mkosi -d fedora -t directory --bootable no

...

$ ls image
afs  bin  boot  dev  efi  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var

$ tree image/home
image/home
└── username
    └── tmp
        └── mkosi

This happens when building Fedora, CentOS, RHEL, Alma Linux and Rocky Linux images. It does not happen when building Debian, Ubuntu and Gentoo images. I did not try with other OSes. I tried both v18 and the current main installed with pip.

@DaanDeMeyer DaanDeMeyer added the bug label Nov 6, 2023
@DaanDeMeyer
Copy link
Contributor

This seems to be a bug in dnf as I can reproduce with dnf but not with dnf5.

@DaanDeMeyer
Copy link
Contributor

Reported the bug: rpm-software-management/dnf#2011

@DaanDeMeyer
Copy link
Contributor

Let's close this here as the bug has been confirmed in dnf and should be fixed there.

@DaanDeMeyer DaanDeMeyer closed this as not planned Won't fix, can't repro, duplicate, stale Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants