23.11.2019 15:10, Istvan Gabor пишет:
Another cmdline options come from dracut module that is responsible for root block device preparation, and this module is not aware that you tread on its territory.
dracut manual says that dracut command line options overwrite dracut configuration options in /etc/dracut.conf, /etc/dracut.conf.d/*.conf etc. It seems it still applies options from modules.
You confuse dracut options and kernel options.
What do I do wrong and how could I set only root=LABEL=L151-KDE3-ext and resume=LABEL=swap-OSL kernel command line options in the initrd image?
If you insist you must store them in initrd (as opposed to specifying on kernel command line)
I don't understand this. By "specifying on kernel command line" do you mean "linux ... root= ... resume=" line in grub.cfg?
Yes.
I though I have to set these both in grub.cfg and in initrd for correct booting.
No. Stored cmdline is just fallback (or default if you will), actual kernel command line always takes precedence. If it does not, file a bug.
you could use --no-hostonly-cmdline which will skip storing auto-generated kernel command line. But keep in mind, this applies to *all* dracut modules. It will also no more add rootfstype & Co, so it is up to you to add *complete* correct kernel command line, not just the options you want to change.
I would not like to do this. Is there other way to disable auto-generated kernel command line?
I was about to suggest several ways when I discovered that you can configure dracut to use LABEL= instead of UUID=. See man dracut.conf, search for persistent_policy, set persistent_policy=by-label. But again - this is global, so any other dracut module that works with block devices will be using LABEL. So the simplest way to override only root= and resume= is really to use kernel command line. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org