[Bug 948771] New: Errors reported during boot of Tumbleweed 20151002
http://bugzilla.opensuse.org/show_bug.cgi?id=948771 Bug ID: 948771 Summary: Errors reported during boot of Tumbleweed 20151002 Classification: openSUSE Product: openSUSE Factory Version: 2015* Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: freek@opensuse.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I found the following error messages during boot after upgrading to Tumbleweed 20151002: systemd-fstab-generator[104]: Failed to create mount unit file /run/systemd/generator/sysroot.mount, as it already exists systemd-udevd[250]: invalid key/value pair in file /usr/lib/udev/rules.d/58-scsi-sg3_symlink.rules on line 17, starting at kernel: CRAT table not found dbus-daemon[908]: Unknown username "srvGeoClue" in message bus configuration file kdm_config[1415]: Multiple occurrences of key 'Language' in section [X-*-Greeter] of /usr/share/kde4/confi kdm_greet[1507]: Cannot load /usr/share/kde4/apps/kdm/faces/.default.face: Bestand of map bestaat niet There was also a message, right after the grup2 screen about a device /r ..something.. Will report later. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c1
--- Comment #1 from Freek de Kruijf
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c2
Fabian Vogt
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c3
Andrei Borzenkov
To the "systemd-fstab-generator" messages: The "root=" parameter in /proc/cmdline is equvalent to an entry in /etc/fstab, so the warning is expected and necessary (although it could be worded better) as the mount options in /etc/fstab for / are ignored. See also http://lists.opensuse.org/opensuse-factory/2015-10/msg00138.html The goal is to remove "root=" from the default kernel commandline, but that's a multi-stage process. If the warning is too annoying or has any other side effects it'd definitely be possible to revert the patch or just remove the warning.
It actually sounds like root= sysroot.mount should be placed in argv[2] by systemd-fstab-generator. This way it will override any other unit and no extraneous warning will be generated. See http://www.freedesktop.org/wiki/Software/systemd/Generators/ for details. Care to submit upstream pull request? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c4
--- Comment #4 from Fabian Vogt
This way it will override any other unit and no extraneous warning will be generated.
That's the correct approach to avoid the warning, but we WANT the warning to appear. It notifies us that mount options for / (for example, discard on XFS which can not be changed at runtime by "mount -o remount,discard") may have been ignored. Once root= is gone from the cmdline it's not an issue anymore. I agree that this patch should've been delayed a bit, but it's not that big of an issue, I hope :-) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c5
Tobias Guggenmos
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c9
Franck Bui
This way it will override any other unit and no extraneous warning will be generated.
That's the correct approach to avoid the warning, but we WANT the warning to appear. It notifies us that mount options for / (for example, discard on XFS which can not be changed at runtime by "mount -o remount,discard") may have been ignored. Once root= is gone from the cmdline it's not an issue anymore. I agree that this patch should've been delayed a bit, but it's not that big of an issue, I hope :-)
@Fabian: if I'm understanding the new behaviour of dracut correctly, any modifications regarding the rootfs in /etc/fstab by the admin requires now to regenerate the initrd, which is something that is unusual. Is this also the case for other partitions in /etc/fstab or it concerns only / partition ? Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c13
--- Comment #13 from Fabian Vogt
(In reply to Fabian Vogt from comment #4) ... @Fabian: if I'm understanding the new behaviour of dracut correctly, any modifications regarding the rootfs in /etc/fstab by the admin requires now to regenerate the initrd, which is something that is unusual. Only if the location of / or critical mount options were changed. With root= on the grub cmdline you had to regenerate the bootloader config and it would break in most cases, as grub2-mkconfig doesn't look at /etc/fstab at all AFAICS. Once you change /, it is definitely not unusual to have to build a new initrd.
Is this also the case for other partitions in /etc/fstab or it concerns only / partition ? Only /.
Thanks.
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c14
Andrei Borzenkov
That's the correct approach to avoid the warning, but we WANT the warning to appear.
In this case grub should be patched to not add automatically root= at all. Otherwise these warnings will be present on every system. There are already far too many users unnecessary alarmed by them. Is it guaranteed that generated initrd will always include correct /etc/fstab line for root? Do we support any other alternative initrd generator that does not do it? Adding mchang to Cc. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c15
--- Comment #15 from Michael Chang
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c16
--- Comment #16 from Michael Chang
(In reply to Fabian Vogt from comment #4)
Is it guaranteed that generated initrd will always include correct /etc/fstab line for root? Do we support any other alternative initrd generator that does not do it?
You made the point, removing root= is risky unless we know how to detect that dracut setup correctly and reliably. :) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c17
--- Comment #17 from Andrei Borzenkov
The point I can't understand is why in host-only mode, that root= parameter is still concerned and used ?
sysroot.mount is generated by systemd-fstab-generator, it know nothing about dracut host mode (or whether initrd had been created by dracut for that matter). /sysroot mount point in /etc/fstab is SUSE-specific patch. So now generator runs twice - first for root= kernel command line and next for /sysroot in initrd /etc/fstab. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c23
--- Comment #23 from Michael Chang
(In reply to Franck Bui from comment #9)
(In reply to Fabian Vogt from comment #4) ... @Fabian: if I'm understanding the new behaviour of dracut correctly, any modifications regarding the rootfs in /etc/fstab by the admin requires now to regenerate the initrd, which is something that is unusual. Only if the location of / or critical mount options were changed.
No. This basically means we need to re-generate initrd to get everything synced to be in safe side. It's hard to distinguish by how mount options is modified and also it's importance. The other problem is user need to be trained to know the new trick.
With root= on the grub cmdline you had to regenerate the bootloader config and it would break in most cases, as grub2-mkconfig doesn't look at /etc/fstab at all AFAICS.
I don't know why grub2 (or any other boot-config) would break without /etc/fstab. The root= is meant to tell kernel or initrd where to look up root partition, then they can take over the control from this given information they would need before they can proceed. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c24
--- Comment #24 from Michael Chang
This way it will override any other unit and no extraneous warning will be generated.
That's the correct approach to avoid the warning, but we WANT the warning to appear. It notifies us that mount options for / (for example, discard on XFS which can not be changed at runtime by "mount -o remount,discard") may have been ignored.
That sounds like XFS bug to fix, and actually the warning message is not precise to what have happened ..
Once root= is gone from the cmdline it's not an issue anymore. I agree that this patch should've been delayed a bit, but it's not that big of an issue, I hope :-)
It may not be an issue here, but may be other issue there. Consider power user may try to custom their initrd from another source and oops .. Thanks. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c25
--- Comment #25 from Michael Chang
(In reply to Michael Chang from comment #15)
sysroot.mount is generated by systemd-fstab-generator, it know nothing about dracut host mode (or whether initrd had been created by dracut for that matter). /sysroot mount point in /etc/fstab is SUSE-specific patch. So now generator runs twice - first for root= kernel command line and next for /sysroot in initrd /etc/fstab.
Thanks for explaining. That sounds a mess really. :( -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
Alberto Planas Dominguez
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
Andrei Dziahel
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
Antoine Belvire
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c31
Bjørn Lie
The sg3_utils part of this bug is fixed indeed, but we still have the dracut/grub vs systemd-generator issue. [...] Therefor reopening bug, and reassigning to what might be the wrong person. Nope, I'm the right one, actually. As it's very likely not going to be fixed in a acceptable way, dropping the
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c32
Fabian Vogt
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c35
--- Comment #35 from Oliver Kurz
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c36
Oliver Kurz
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c37
Marcos Mello
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c38
--- Comment #38 from Oliver Kurz
http://bugzilla.opensuse.org/show_bug.cgi?id=948771
http://bugzilla.opensuse.org/show_bug.cgi?id=948771#c42
Fabian Vogt
participants (1)
-
bugzilla_noreply@novell.com