makedev operation not permitted #37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am trying to use mmdebstrap (via bdebstrap) with a set of packages that I use in outdated alternative root filesystem builder (brickstrap, which is based on multistrap), targeting an armhf architecture.
All packages install ok except for
makedev, which outputs errors like this:and
Is this a problem with
mmdebstrap, or something I need to install in my development environment?The dev environment a newly created VM (Debian 12 Bookwork Testing) so might have some missing packages that I need?
Full output
Hi,
what are the contents of your
examples/debian-bookworm-minimal-watchdog.yaml? Anyways, as you are not running bdebstrap as root, mmdebstrap is either run in unshare or fakeroot mode. Neither node has the necessary permissions to create device nodes.I guess I see several ways forward:
Do not discard the last point easily. I'm surprised anybody uses makedev these days. It was useful in the past but not anymore these days. Look at those usage numbers:
https://qa.debian.org/popcon.php?package=makedev
Why do you think do you need it? mmdebstrap (and in extension bdebstrap) is already creating device nodes for you without needing superuser privileges. Also look at the changelog of makedev. The package was orphaned in 2012 and hasn't received any additional features besides packaging fixes since then...
My
debian-bookwork-minimal-watchdog.yamlfile is:I don't observe this issue when using
brickstrapto build a rootfs as a non-root user. NOTE: I'm using an older version ofbrickstrap, which usesuser-unshare,multistrap, andlibguestfs.makedevis a dependency of thewatchdogpackage.However, I have just noticed the package specifies
makedevorudevas a dependency, so maybe if I specifyudevin the package list then it wont downloadmakedev?https://packages.debian.org/bookworm/watchdog
I can see that my
brickstrapgenerated filesystem doesn't havemakedevinstalled, but does haveudevinstalled, so I guess that is probably the solution.I can confirm that adding
udevas a package allows the build to succeed :)This yaml file works
Closing this issue now.
Cheers :)