On Mon, Oct 5, 2015 at 11:34 AM, Fabian
Am Montag, 5. Oktober 2015, 11:02:51 schrieb Andrei Borzenkov:
On Mon, Oct 5, 2015 at 7:41 AM, Moby
wrote: After applying this update to two different (one 64 and other 32 bit) machines, I get the following error displayed during boot:
systemd-fstab-generator[95]: Failed to create mount unit file /run/systemd/generator/sysroot.mount, as it already exists. Duplicate entry in /etc/fstab?
Anyone else seeing this?
From quick glance over dracut package, it unconditionally adds /sysroot to initrd's /etc/fstab in patch 0400-use_fstab_systemd.patch. Small nitpick: It doesn't add it during boot, it's already in the initrd: lsinitrd /boot/initrd /etc/fstab
I did not say "adds /etc/fstab". I said "adds TO /etc/fstab".
But systemd generates /sysroot mount from root= kernel command line already. So we get duplicate indeed. Correct! The patch is a simplification of the dracut root "stuff", as with all modules and systemd together it has become quite a mess. The responsibility of deciding between "root=" and /etc/fstab is moved out from dracut into systemd-fstab-generator,
Really? Could you point to source? systemd-fstab-generator generates /sysroot mount from root= kernel command line; it does not use any fstab for it. At least, in upstream ...
where is is implemented already, but not used yet. This resulted in code duplication and even more mess...
I'm not sure what this patch intended to fix, because its subject directly contradicts single line comment :) It doesn't fix anything directly, but in the long run it's intended to get rid of "root=" in the default grub config. The "root=" parameter is still fully supported, of course, but right now there is an issue with handling of mount options on /. If "root=<something>" is given on the kernel command line, the initrd ignores the entry for / in /etc/fstab completely. That's basically why the warning is there, although fairly generic. The issue with this is, that should there be any special mount options that can not be applied with "mount -o remount", those options will never have any effect whatsoever. Another parameter "rootflags=" is for suppling options that go together with "root=", but it's not set automatically.
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org