[Bug 977354] New: systemd-udevd - faulty parsing of udev rules
http://bugzilla.opensuse.org/show_bug.cgi?id=977354 Bug ID: 977354 Summary: systemd-udevd - faulty parsing of udev rules Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.1 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: per@computer.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- systemd-udevd seems to have an issue with missing newlinesi at the end of file: in openSUSE 13.1: systemd-udevd[284]: invalid key/value pair in file /usr/lib/udev/rules.d/90-hwrng.rules on line 1,starting at character 107 ('a') same ting in bug#965512 (for leap421): systemd-udevd[550]: invalid key/value pair in file /usr/lib/udev/rules.d/51-android.rules on line 115,starting at character 57 Fix: just add a newline. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=977354 http://bugzilla.opensuse.org/show_bug.cgi?id=977354#c1 --- Comment #1 from Per Jessen <per@computer.org> --- (In reply to Per Jessen from comment #0)
Fix: just add a newline.
s/fix/work-around/ -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=977354 http://bugzilla.opensuse.org/show_bug.cgi?id=977354#c2 Ruediger Oertel <ro@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|ro@suse.com |werner@suse.com --- Comment #2 from Ruediger Oertel <ro@suse.com> --- trying systemd maintainers. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=977354 http://bugzilla.opensuse.org/show_bug.cgi?id=977354#c5 --- Comment #5 from Per Jessen <per@computer.org> --- Um, the reason I opened a separate report for this is that two rulesets already fell over on this poor parsing. It seems to me to be better to fix the parsing than to keep fixing rulesets. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=977354 http://bugzilla.opensuse.org/show_bug.cgi?id=977354#c9 --- Comment #9 from Per Jessen <per@computer.org> --- Actually, there is something odd going on. This example is from 13.1 - systemd-udev complains about this: systemd-udevd[284]: invalid key/value pair in file /usr/lib/udev/rules.d/90-hwrng.rules on line 1,starting at character 107 ('a') I added a newline and it's fine. However, nothing complains about this rule: /etc/udev/rules.d/70-persistent-net.rules: SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:85:a6:a8:3d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" It has no trailing newline. Also, in the 90-hwrng.rules file, character 107 is not an 'a'. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=977354 http://bugzilla.opensuse.org/show_bug.cgi?id=977354#c10 --- Comment #10 from Per Jessen <per@computer.org> --- (In reply to Per Jessen from comment #9)
Actually, there is something odd going on. This example is from 13.1 -
systemd-udev complains about this:
systemd-udevd[284]: invalid key/value pair in file /usr/lib/udev/rules.d/90-hwrng.rules on line 1,starting at character 107 ('a')
I added a newline and it's fine.
However, nothing complains about this rule:
/etc/udev/rules.d/70-persistent-net.rules:
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:14:85:a6:a8:3d", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
Looking at 13.1, there is plenty of rule files with no trailing newline on the last line. Probably the same in leap421. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com