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

linux: add new mount/umount2 libc6 wrappers #1652

Closed
wants to merge 1 commit into from

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Mar 8, 2024

To avoid having to use an external "mount" binary (and having to deal with the selinux labeling) this commit adds new "mount" and "umount2" syscalls to the osbuild.util.linux package and the coresponding tests.

for path, content in fake_content.items():
dirp, name = os.path.split(os.path.join(basedir, path.lstrip("/")))
os.makedirs(dirp, exist_ok=True)
if content is not None:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't be None according to type annotation, you probably want if content: to check if the dict has any values in it.

Copy link

This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Apr 25, 2024
To avoid having to use an external "mount" binary (and having to
deal with the selinux labeling) this commit adds new "mount"
and "umount2" syscalls to the osbuild.util.linux package and
the coresponding tests.
Copy link

This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label May 26, 2024
@mvo5
Copy link
Contributor Author

mvo5 commented May 27, 2024

I close this for now as we have not clear use case (anymore, it was bib and selinux). I still think it might be nice to have but it's not urgent and we can always resurrect it. Note that the bigger problem with moving to mount/umount syscalls is the libmount recursive unmount support which is very nice to have and which we would have to write on our own if we want to go full no-{,u}mount-binary (not a big deal but extra work and testing)

@mvo5 mvo5 closed this May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants