-
Notifications
You must be signed in to change notification settings - Fork 359
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
unshare plugin fails in a chroot #3187
Comments
mount("/", "/", NULL, MS_REC | MS_PRIVATE, NULL) inside a chroot fails with EINVAL. Maybe there's some magic ritual that makes it possible, but until somebody figures it out, just disable the private mounts inside a chroot. Fixes: rpm-software-management#3187
https://unix.stackexchange.com/questions/554240/unshare-mount-inside-a-jenkins-chroot-environment seems to be right on the money... or at least relevant: / inside the chroot is not an actual mount-point. |
mount("/", "/", NULL, MS_REC | MS_PRIVATE, NULL) inside a chroot fails with EINVAL. Apparently this is because "/" inside the chroot is not (necessarily) an actual mount point and ... then it starts getting more complicated. It should be possible to handle but not something we want to attempt just before a release candidate. Related: rpm-software-management#3187
Moving the / remount to the rpm parent process makes it work, but then that has other side-effects and causes one test to fail. That rabbit hole may be deep, and it's not something we can afford to dive into just before an rc. |
mount("/", "/", NULL, MS_REC | MS_PRIVATE, NULL) inside a chroot fails with EINVAL. Apparently this is because "/" inside the chroot is not (necessarily) an actual mount point and ... then it starts getting more complicated. It should be possible to handle but not something we want to attempt just before a release candidate. Related: rpm-software-management#3187
Dropping 4.20 milestone, that ship sailed already. There's always the next update. |
mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL) inside a chroot fails with EINVAL if the "/" inside the chroot is not an actual mount point on the system - as it often isn't. For now, just disable that functionality on chroot operation. Related: rpm-software-management#3187
mount(NULL, "/", NULL, MS_REC | MS_PRIVATE, NULL) inside a chroot fails with EINVAL if the "/" inside the chroot is not an actual mount point on the system - as it often isn't. For now, just disable that functionality on chroot operation. Related: #3187
Describe the bug
unshare plugin fails in various ways when installing to a chroot.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors encountered.
Output
Errors like this repeated for various scriptlets:
Environment
The text was updated successfully, but these errors were encountered: