Arch Linux

Please read this before reporting a bug:

Do NOT report bugs when a package is just outdated, or it is in Unsupported. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!

FS#66760 - [systemd] systemd-udevd logs lots of "line takes no effect, ignoring" warnings in the initramfs

Attached to Project: Arch Linux
Opened by Daan De Meyer (DaanDeMeyer) - Saturday, 23 May 2020, 22:31 GMT
Last edited by freswa (frederik) - Sunday, 24 May 2020, 01:15 GMT
Task Type Bug Report
Category Packages: Extra
Status Assigned
Assigned To Dave Reisner (falconindy)
Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No



Currently, when using systemd as the init in the initramfs, systemd-udevd logs lots of "line takes no effect, ignoring" warnings. After investigating the issue (, it turns out this happens because we disable systemd-udevd name resolving by adding a drop-in for the systemd-udevd service that adds the --resolve-names=never option (see initcpio-install-systemd in this package). That workaround was initially added to solve so when we remove the drop-in, we get lots of errors from systemd-udevd in the initramfs. The root cause of those errors is that /etc/group only contains the root user in the initramfs and nothing else. To solve the issue, we should add systemd-sysusers, systemd-sysusers.service and (at least) sysusers.d/basic.conf to the initramfs so that systemd fills in /etc/group in the initramfs with the necessary groups to allow systemd-udevd to function correctly. After adding those, the systemd-udevd workaround dropin can be removed.

Steps to reproduce:
- Use systemd mkinitcpio hook
- Rebuild initramfs
- Reboot
- journalctl -e -u systemd-udevd should show lots of "line takes no effect, ignoring" warnings.
This task depends upon

Comment by Daan De Meyer (DaanDeMeyer) - Wednesday, 27 May 2020, 16:43 GMT
The systemd developers advised to simply ship a static /etc/group in the initramfs instead of adding systemd-sysusers to the initramfs. If we simply take all the groups from and put those in /etc/group in the initramfs we should be able to drop the udev workaround as well.