Bug#944860: udevadm trigger fails in chroot

Michael Biebl biebl at debian.org
Sun Nov 17 01:32:26 GMT 2019


Am 17.11.19 um 01:57 schrieb Jonah BrĂ¼chert:
> Thanks for looking into the issue.
> 
>> Can you be more specific how you setup your chroot so we have a chance
>> to reproduce the problem?

[..]

I guess you'll need to break that down to a more minimal test case for
me being able to reproduce the issue.

That said, udevadm trigger uses running_in_chroot()

https://github.com/systemd/systemd/blob/master/src/udev/udevadm-trigger.c#L177

That function has not changed between v242 and v243:
https://github.com/systemd/systemd/blob/master/src/basic/virt.c#L629

int running_in_chroot(void) {
        int r;

        if (getenv_bool("SYSTEMD_IGNORE_CHROOT") > 0)
                return 0;

        r = files_same("/proc/1/root", "/", 0);
        if (r < 0)
                return r;

        return r == 0;
}



Is it possible that something in your test environment has actually
changed which now triggers the failure?


-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- 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/20191117/58f6be05/attachment-0001.sig>


More information about the Pkg-systemd-maintainers mailing list