Bug#951257: udevadm: please exit nonzero with "Running in chroot, ignoring request." when /proc is not mounted
Michael Biebl
biebl at debian.org
Thu Feb 13 13:21:00 GMT 2020
Am 13.02.20 um 14:03 schrieb Trent W. Buck:
> Michael Biebl wrote:
>> Am 13.02.20 um 13:29 schrieb Trent W. Buck:
>>> Packages like udisks2 run "udevadm trigger" in their postinsts.
>>> When building a Debian Live image, if /proc is mounted in the chroot, all is well.
>>> When building a Debian Live image, if /proc is NOT mounted in the chroot,
>>> udevadm gives annoying errors, and the whole build crashes.
>>>
>>> Without /proc:
>>>
>>> root at DESKTOP-P00TKMM:/# udevadm trigger
>>> Failed to scan devices: No such file or directory
>>
>> This means, /sys is missing, not proc afaics.
>
> Thanks for the prompt reply.
>
> My tests show /proc alone is enough to enable the existing "do nothing" code.
> Giving a longer excerpt from from boring-full-transcript.txt.xz:
>
> 78root at DESKTOP-P00TKMM:/# udevadm trigger
> Failed to scan devices: No such file or directory
You should only get this error message if /sys is not mounted.
I assume your chroot has neither /sys nor /proc mounted.
systemd-udevd.service has
ConditionPathIsReadWrite=/sys
You could try to convince upstream to add a similar check to "udevadm
trigger"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200213/916e1c77/attachment-0001.sig>
More information about the Pkg-systemd-maintainers
mailing list