Bugzilla – Bug 768423
mkinitrd: update sysconfig comments
Last modified: 2013-12-04 16:34:43 UTC
Mention in /etc/sysconfig/kernel MODULES_LOADED_ON_BOOT that it is now superseded by /etc/modules-load.d/.
Its still referenced in /etc/init.d/boot.loadmodules, is that file not exectued anymore in 12.3? If so, looks like a sysvinit handling bug in systemd, unless this particular file is masked somewhere.
/etc/init.d/boot.loadmodules is masked by systemd (/usr/lib/systemd/system/loadmodules.service -> /dev/null), and systemd is default in 12.3, so by all practical considerations, boot.loadmodules is not executed anymore. openSUSE-systemd has a replacement service, systemd-load-modules.service, for reading the old MODULES_LOADED_ON_BOOT.
I think its not easy to modify a comment of an existing, or remove an old variable. Rudi, what should be done with old variables or existing comments? I would just remove boot.loadmodules and the fillup template from Factory.
Editing the fillup template would be sufficient as far as the bug report is concerned. Of course, removal also sounds good.
there is a macro to remove variables from sysconfig files, modifying comments is not directly supported. for reference: # macro: remove_and_set # remove variables from sysconfig.$NAME # (both if existant) and set them in the environment # for further handling in postinstall # options: -n set package name # -y default to yes if not found (otherwise no) %remove_and_set(n:y) ... and yes, we should find a way to read the value and configure systemd accordingly but in the end I'm afraid this will end like most things and we will just remove the previous configuration :(
(In reply to comment #2) > /etc/init.d/boot.loadmodules is masked by systemd > (/usr/lib/systemd/system/loadmodules.service -> /dev/null), and systemd is > default in 12.3, so by all practical considerations, boot.loadmodules is not > executed anymore. openSUSE-systemd has a replacement service, > systemd-load-modules.service, for reading the old MODULES_LOADED_ON_BOOT. What is the replacement for MODULES_LOADED_ON_BOOT? I guess there is no upgrade path implemented.
There is no upgrade path implemented atm — which conversely means we will keep on reading MODULES_LOADED_ON_BOOT from /etc/sysconfig/kernel (but it is still deprecated ;-).
http://www.freedesktop.org/software/systemd/man/modules-load.d.html Looks like its as simple as writing a MODULES_LOADED_ON_BOOT.conf file to /etc/modules-load.d/ and remove the old setting somehow with the macro above.
I commited such a change now. https://gitorious.org/opensuse/mkinitrd/commit/5451b375e502b88a623fb0a47fbf75115f0acee6
This is an autogenerated message for OBS integration: This bug (768423) was mentioned in https://build.opensuse.org/request/show/185826 Factory / mkinitrd