Does pacstrap need access to /dev?
Task Info (Flyspray) | |
---|---|
Opened By | Philip Abernethy (Chais) |
Task ID | 58329 |
Type | General Gripe |
Project | Arch Linux |
Category | Arch Projects |
Version | None |
OS | All |
Opened | 2018-04-24 00:21:37 UTC |
Status | Assigned |
Details
Description:
I'm tinkering with lxc and noticed that pacstrap fails in an unprivileged container.
Digging a little deeper I narrowed it down to this line:
chroot_add_mount udev "$1/dev" -t devtmpfs -o mode=0755,nosuid
I don't see why a fully initialised devfs is necessary for installing packages. Useful devs like null or urandom could either be used from the host or initialised separately,
but I'd be surprised and suspicious if a package required direct access to, say, a block device during installation.
Am I missing something here? Or was this just the simplest solution and nobody tried building a chroot in an unprivileged lxc, yet?