Skip to contentSkip to conversation

dracut: automatically add "unix" kernel module

DISCUSSION Dennis Schridde 3 participants 7 messages Aug 11, 2011 – Aug 15, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hello!

Dracut currently does not seem to automatically include the "unix" kernel module in the initramfs, which causes udev to be unable to start ("address family not supported by protocol").

It should be adjusted to include it if possible.

I am using dracut-011 and had to set add_drivers+="unix" in dracut.conf to be able to boot my system.

Kind regards,
Dennis

#1 lore raw
Quoted 6 lines · Dennis Schridde

Hello!

Dracut currently does not seem to automatically include the "unix" kernel module in the initramfs, which causes udev to be unable to start ("address family not supported by protocol").

Quoted 7 lines

It should be adjusted to include it if possible.

I am using dracut-011 and had to set add_drivers+="unix" in dracut.conf to be able to boot my system.

Kind regards,
Dennis

Just add a file /etc/modprobe.d/myaliases.conf to your system, containing:
alias net-pf-1 unix

#2 lore raw
Quoted 9 lines · Harald Hoyer
Quoted 8 lines · Dennis Schridde

Hello!

Dracut currently does not seem to automatically include the "unix" kernel module in the initramfs, which causes udev to be unable to start ("address family not supported by protocol").

It should be adjusted to include it if possible.

Quoted 8 lines
Quoted 5 lines

I am using dracut-011 and had to set add_drivers+="unix" in dracut.conf to be able to boot my system.

Kind regards,
Dennis

Just add a file /etc/modprobe.d/myaliases.conf to your system,
containing: alias net-pf-1 unix

The kernel already does the same thing:

MODULE_ALIAS_NETPROTO(PF_UNIX);

don't know why udev can't load it automatically...

#3 lore raw
Quoted 17 lines · WANG Cong
Quoted 15 lines · Harald Hoyer
Quoted 13 lines · Dennis Schridde

Hello!

Dracut currently does not seem to automatically include the "unix" kernel module in the initramfs, which causes udev to be unable to start ("address family not supported by protocol").

It should be adjusted to include it if possible.

I am using dracut-011 and had to set add_drivers+="unix" in dracut.conf to be able to boot my system.

Kind regards,
Dennis

Quoted 8 lines
Quoted 2 lines

Just add a file /etc/modprobe.d/myaliases.conf to your system,
containing: alias net-pf-1 unix

The kernel already does the same thing:

MODULE_ALIAS_NETPROTO(PF_UNIX);

don't know why udev can't load it automatically...

Not udev... it should be kernel itsself via:

$ cat /proc/sys/kernel/modprobe
/sbin/modprobe

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw

Hello!

Please CC me, since I am not on the list.

Am Freitag, 12. August 2011, 06:41:56 schrieb WANG Cong:

Quoted 6 lines · Harald Hoyer
Quoted 5 lines · Dennis Schridde
Quoted 3 lines

Dracut currently does not seem to automatically include the "unix" kernel module in the initramfs, which causes udev to be unable to start ("address family not supported by protocol").

Quoted 8 lines
Quoted 2 lines

Just add a file /etc/modprobe.d/myaliases.conf to your system,
containing: alias net-pf-1 unix

The kernel already does the same thing:

MODULE_ALIAS_NETPROTO(PF_UNIX);

don't know why udev can't load it automatically...

The problem is that dracut does not automatically include the "unix" module in the initramfs it generates. If I include the module manually (via "add_drivers" in dracut.conf) it will be successfully loaded.

Does the kernel use a different aliases table than dracut?

Kind regards,
Dennis

#6 lore raw
Quoted 16 lines · Dennis Schridde

Hello!

Please CC me, since I am not on the list.

Am Freitag, 12. August 2011, 06:41:56 schrieb WANG Cong:

Quoted 11 lines · Harald Hoyer
Quoted 7 lines · Dennis Schridde
Quoted 3 lines

Dracut currently does not seem to automatically include the "unix" kernel module in the initramfs, which causes udev to be unable to start ("address family not supported by protocol").

Just add a file /etc/modprobe.d/myaliases.conf to your system,
containing: alias net-pf-1 unix

The kernel already does the same thing:

Quoted 7 lines
Quoted 3 lines

MODULE_ALIAS_NETPROTO(PF_UNIX);

don't know why udev can't load it automatically...

The problem is that dracut does not automatically include the "unix" module in the initramfs it generates. If I include the module manually (via "add_drivers" in dracut.conf) it will be successfully loaded.

ah, ok.. didn't think about that one. So, I guess, we need:

http://git.kernel.org/?p=boot/dracut/dracut.git;a=commitdiff;h=016c3cfed27952f328d481b231a51129341746d9

(might need some time to show up on kernel.org)

#7 lore raw
Quoted 9 lines · Harald Hoyer
Quoted 4 lines · Dennis Schridde

The problem is that dracut does not automatically include the "unix" module in the initramfs it generates. If I include the module manually (via "add_drivers" in dracut.conf) it will be successfully loaded.

ah, ok.. didn't think about that one. So, I guess, we need:

http://git.kernel.org/?p=boot/dracut/

dracut.git;a=commitdiff;h=016c3cfed27952f328d481b231a51129341746d9

Quoted 2 lines

(might need some time to show up on kernel.org)

Yeah, thanks for fixing it!