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

Feature request: run distrobuilder as a regular user #161

Closed
inercia opened this issue Mar 29, 2019 · 1 comment
Closed

Feature request: run distrobuilder as a regular user #161

inercia opened this issue Mar 29, 2019 · 1 comment

Comments

@inercia
Copy link
Contributor

inercia commented Mar 29, 2019

Users currently need to run distrobuilder with sudo for building images, I guess for having the right owner/permissions in the root fs. This makes it very unconvenient for integrating distrobuilder in automated environments or with other tools like Terraform.

I was wondering if it would be posssible to drop this requirement, maybe by unshareing some namespaces before starting the build...

@stgraber
Copy link
Member

It's not possible as using unshare would only give you a single uid and gid to work with which won't work as rootfs always has files owned by multiple users.

If that was the only issue, something like fakeroot would probably work, but distrobuilder also needs to be able to create and use device nodes, configure and use loop devices and mount a variety of filesystems, none of which can be done by an unprivileged user.

I'm hoping that in the next few years we can get to the point where enough of this is possible in an unprivileged container to at least let us use that, but even for those we're still a long way away.

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

No branches or pull requests

2 participants