[opensuse] Where are listed modules included in initrd in Leap 42.x ?
Hi ! Where are listed modules included in initrd in Leap 42.x ? /etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here Thanks in advance Andrei -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* andreil1
Hi !
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here
lsmod - Show the status of modules in the Linux Kernel -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri Registered Linux User #207535 @ http://linuxcounter.net Photos: http://wahoo.no-ip.org/piwigo paka @ IRCnet freenode -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
andreil1 wrote:
Hi !
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here
It depends on your system - the initrd is built to suit your system. lsinitrd will tell you what a specific initrd contains. -- Per Jessen, Zürich (8.9°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 22 Nov 2017, at 17:43, Per Jessen
wrote: andreil1 wrote:
Hi !
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here
It depends on your system - the initrd is built to suit your system.
lsinitrd will tell you what a specific initrd contains.
Thanks, but I’m need to add some modules manually, not just get a list. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
andreil1 wrote:
On 22 Nov 2017, at 17:43, Per Jessen
wrote: andreil1 wrote:
Hi !
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here
It depends on your system - the initrd is built to suit your system.
lsinitrd will tell you what a specific initrd contains.
Thanks, but I’m need to add some modules manually, not just get a list.
Sorry, I misunderstood your question. You can add them with '--add-drivers' to dracut. Maybe there is a default setting for dracut somewhere. Is this still about the hpsa module? -- Per Jessen, Zürich (8.0°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi !
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here It depends on your system - the initrd is built to suit your system.
lsinitrd will tell you what a specific initrd contains.
Thanks, but I’m need to add some modules manually, not just get a list. Sorry, I misunderstood your question.
You can add them with '--add-drivers' to dracut. Maybe there is a default setting for dracut somewhere. Is this still about the hpsa module?
Yes, this is still about hpsa module. I run "dracut --add-drivers hpsa" on another test system, then looked in yast -> sysconfig -> kernel, hpsa still not there. Someone from SUSE, can you please clarify where list of initrd kernel modules moved from /etc/sysconfig/kernel ? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Thursday, November 23, 2017 12:50:23 AM EST andreil1@starlett.lv wrote:
Hi !
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here
It depends on your system - the initrd is built to suit your system.
lsinitrd will tell you what a specific initrd contains.
Thanks, but I’m need to add some modules manually, not just get a list.
Sorry, I misunderstood your question.
You can add them with '--add-drivers' to dracut. Maybe there is a default setting for dracut somewhere. Is this still about the hpsa module?
Yes, this is still about hpsa module. I run "dracut --add-drivers hpsa" on another test system, then looked in yast -> sysconfig -> kernel, hpsa still not there.
Someone from SUSE, can you please clarify where list of initrd kernel modules moved from /etc/sysconfig/kernel ?
The list hasn't moved. If you modify the current initrd with dracut that will not change /etc/sysconfig/kernel. That file is used as input to mkinitrd/ dracut when the initrd is generated. If you are in a recovery mode (you didn't mention that in your first post), then you are running from the kernel/initrd booted in that recovery environment, not the same as your production system. If I understand you correctly, you would need to mount your production file system (which will also require you to "bind" several directories, IIRC /proc, /sys, /var), and chroot into that environment. I think you should then be able modify /etc/ sysconfig/kernel and run mkinitrd, which will general a new production initrd. I don't know if you can modify your production initrd on the fly in your chroot environment, as Per described. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
andreil1@starlett.lv wrote:
Hi !
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here It depends on your system - the initrd is built to suit your system.
lsinitrd will tell you what a specific initrd contains.
Thanks, but I’m need to add some modules manually, not just get a list. Sorry, I misunderstood your question.
You can add them with '--add-drivers' to dracut. Maybe there is a default setting for dracut somewhere. Is this still about the hpsa module?
Yes, this is still about hpsa module. I run "dracut --add-drivers hpsa" on another test system, then looked in yast -> sysconfig -> kernel, hpsa still not there.
That is correct - when you run dracut, you rebuild the initrds in /boot. It does not change any config. Still, like I said earlier, when your root is on your HP Smart Array Controller, dracut will automatically include hpsa. You can double check that with dracut - just builds a single initrd, then use lsinitrd to check the contents. From a rescue system it might look like this: dracut --root=/dev/sdx /boot/andrei99 4.4.92-31-default -- Per Jessen, Zürich (4.7°C) http://www.hostsuisse.com/ - virtual servers, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Per Jessen wrote:
andreil1@starlett.lv wrote:
Hi !
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here It depends on your system - the initrd is built to suit your system.
lsinitrd will tell you what a specific initrd contains.
Thanks, but I’m need to add some modules manually, not just get a list. Sorry, I misunderstood your question.
You can add them with '--add-drivers' to dracut. Maybe there is a default setting for dracut somewhere. Is this still about the hpsa module?
Yes, this is still about hpsa module. I run "dracut --add-drivers hpsa" on another test system, then looked in yast -> sysconfig -> kernel, hpsa still not there.
That is correct - when you run dracut, you rebuild the initrds in /boot.
Correction - that is the default, but you can rebuild an initrd anywhere. -- Per Jessen, Zürich (4.3°C) http://www.dns24.ch/ - your free DNS host, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Wednesday, November 22, 2017 5:46:31 PM EST andreil1 wrote:
On 22 Nov 2017, at 17:43, Per Jessen
wrote: andreil1 wrote:
Hi !
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here
It depends on your system - the initrd is built to suit your system.
lsinitrd will tell you what a specific initrd contains.
Thanks, but I’m need to add some modules manually, not just get a list.
--
Doesn't YaST -> /etc/sysconfig Editor -> Kernel -> INITRD-MODULES work anymore? --dg -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi !
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here It depends on your system - the initrd is built to suit your system.
lsinitrd will tell you what a specific initrd contains. Thanks, but I’m need to add some modules manually, not just get a list.
-- Doesn't YaST -> /etc/sysconfig Editor -> Kernel -> INITRD-MODULES work anymore?
Probably not in recovery mode. I would prefer to edit list of initrd modules manually. Someone from SUSE, can you please clarify where this list moved from /etc/sysconfig/kernel ? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
23.11.2017 01:45, andreil1@starlett.lv пишет:
Hi !
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here It depends on your system - the initrd is built to suit your system.
lsinitrd will tell you what a specific initrd contains. Thanks, but I’m need to add some modules manually, not just get a list.
-- Doesn't YaST -> /etc/sysconfig Editor -> Kernel -> INITRD-MODULES work anymore?
Probably not in recovery mode. I would prefer to edit list of initrd modules manually.
Someone from SUSE, can you please clarify where this list moved from /etc/sysconfig/kernel ?
Nowhere. It is still used by mkinitrd. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
andreil1 composed on 2017-11-22 17:14 (UTC+0200):
Where are listed modules included in initrd in Leap 42.x ?
/etc/sysconfig/kernel - this file doesn’t exists at all /etc/dracut.conf.d - not here
https://doc.opensuse.org/documentation/leap/reference/html/book.opensuse.ref... provides a short answer, but the 01-dist.conf file it refers to doesn't exist on this 42.3 installation. I think it doesn't matter the name of the file (see /etc/dracut.conf.rpmnew if you have it), only the required syntax to force a module to be added to the initrd(s) when dracut is run. -- "Wisdom is supreme; therefore get wisdom. Whatever else you get, get wisdom." Proverbs 4:7 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (7)
-
Andrei Borzenkov
-
andreil1
-
andreil1@starlett.lv
-
Dennis Gallien
-
Felix Miata
-
Patrick Shanahan
-
Per Jessen