Bug#776912: debootstrap circular depends/pre-depends between sytemd-sysv and systemd
Ansgar Burchardt
ansgar at debian.org
Tue Feb 3 11:42:57 GMT 2015
Control: retitle -1 systemd: missing /dev/urandom makes postinst fail
Hi,
On 02/03/2015 11:59 AM, Ansgar Burchardt wrote:
> On 02/03/2015 11:22 AM, Martin Wuertele wrote:
>> Setting up systemd (215-10) ...
>> Failed to open /dev/urandom: Function not implemented
>> dpkg: error processing package systemd (--configure):
>> subprocess installed post-installation script returned error exit status 1
>
> I think this comes from systemd-machine-id-setup which is called in
> systemd's postinst:
>
> core/machine-id-setup.c:140 (in generate):
> r = sd_id128_randomize(&buf);
>
> libsystemd/sd-id128/sd-id128.c:216:
> r = dev_urandom(&t, sizeof(t));
>
> shared/util.c:2371-2373:
> fd = open("/dev/urandom", O_RDONLY|O_CLOEXEC|O_NOCTTY);
> if (fd < 0)
> return errno == ENOENT ? -ENOSYS : -errno;
>
> To make sure, could you try running systemd-machine-id-setup in the
> chroot? And check if /dev/urandom is present in the chroot?
Martin confirmed that systemd tried to open /dev/urandom which is not
present on purpose and that the source seems to be
systemd-machine-id-setup (but did not CC the bug report).
Ansgar
More information about the Pkg-systemd-maintainers
mailing list