Re: [opensuse-factory] dracut tests
Cristian Rodríguez wrote:
On 07/12/2013 05:46 AM, Per Jessen wrote:
--add-drivers="thermal_sys thermal processor fan scsi_dh scsi_dh_emc scsi_dh_rdac scsi_dh_hp_sw scsi_dh_alua xgifb scsi_transport_iscsi libiscsi libiscsi_tcp iscsi_tcp usb-common usbcore ohci-hcd uhci-hcd ehci-hcd xhci-hcd usbhid hid-logitech-dj hid-generic af_packet e1000e crc32c-intel"
that does not make any sense, whatsoever. the needed drivers for your system are automatically determined with the help of udev.
Okay. I won't have time to try it out now, but I'm back beginning of August.
I got sidetracked, but this morning I've played some more with dracut - I'm still not getting a system that boots though. I have 'dracut', 'dracut-network' and 'dhcp-client' (seems to be required by the former) installed. Observations: Running "dracut -H <initrd>" produces an initrd slightly smaller that my current one. My system doesn't boot with this initrd. I don't feel convinced that network and iscsi features have been included, but I have not found a way (other than taking the initrd apart) of checking it. Adding '-v' (or multiple) does not increase verbosity except for three extra lines at the end of a run. Adding '-L 5' (or 6) does not increase logging. Adding '-M' produces: bash i18n kernel-modules Omitting driver i2o_scsi rootfs-block terminfo udev-rules Skipping udev rule: 91-permissions.rules systemd base fs-lib shutdown suse Without '-M' I get: *** Including module: bash *** *** Including module: i18n *** *** Including module: kernel-modules *** Omitting driver i2o_scsi *** Including module: rootfs-block *** *** Including module: terminfo *** *** Including module: udev-rules *** Skipping udev rule: 91-permissions.rules *** Including module: systemd *** *** Including module: base *** *** Including module: fs-lib *** *** Including module: shutdown *** *** Including module: suse *** -- Per Jessen, Zürich (11.0°C) http://www.hostsuisse.com/ - virtual server hosting in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Per Jessen wrote:
I got sidetracked, but this morning I've played some more with dracut - I'm still not getting a system that boots though. I have 'dracut', 'dracut-network' and 'dhcp-client' (seems to be required by the former) installed.
Observations: Running "dracut -H <initrd>" produces an initrd slightly smaller that my current one. My system doesn't boot with this initrd. I don't feel convinced that network and iscsi features have been included, but I have not found a way (other than taking the initrd apart) of checking it.
How can I verify what was included in the initrd built by dracut? Specifically, I need network and iSCSI support.
Adding '-v' (or multiple) does not increase verbosity except for three extra lines at the end of a run. Adding '-L 5' (or 6) does not increase logging. Adding '-M' produces:
None of these options had any real/desired effect, is some other magic incantation required? -- Per Jessen, Zürich (10.7°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On 2013-10-25 07:57 (GMT+0200) Per Jessen composed:
How can I verify what was included in the initrd built by dracut?
lsinitrd /boot/initrd<version> | less -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Felix Miata wrote:
On 2013-10-25 07:57 (GMT+0200) Per Jessen composed:
How can I verify what was included in the initrd built by dracut?
lsinitrd /boot/initrd<version> | less
Hmm: # lsinitrd initrd-3.11.6-1-pae.dracut . kernel kernel/x86 kernel/x86/microcode Adding '-l' doesn't add much. -- Per Jessen, Zürich (12.1°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Per Jessen wrote:
Felix Miata wrote:
On 2013-10-25 07:57 (GMT+0200) Per Jessen composed:
How can I verify what was included in the initrd built by dracut?
lsinitrd /boot/initrd<version> | less
Hmm:
# lsinitrd initrd-3.11.6-1-pae.dracut . kernel kernel/x86 kernel/x86/microcode
Interesting: # file -bL initrd-3.11.6-1-pae.dracut ASCII cpio archive (SVR4 with no CRC) # cpio --extract -d </boot/initrd-3.11.6-1-pae.dracut 2 blocks # find . . ./kernel ./kernel/x86 ./kernel/x86/microcode I guess the dracut initrd format is quite different to that of mkinitrd? -- Per Jessen, Zürich (13.9°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Saturday 2013-10-26 10:35, Per Jessen wrote:
Interesting:
# file -bL initrd-3.11.6-1-pae.dracut ASCII cpio archive (SVR4 with no CRC)
# cpio --extract -d </boot/initrd-3.11.6-1-pae.dracut 2 blocks
# find . . ./kernel ./kernel/x86 ./kernel/x86/microcode
I guess the dracut initrd format is quite different to that of mkinitrd?
How big is your dracut-generated file, anyway? It looks more like there are no files at all in there. The other guess I can make is that there may be multiple cpio archives in that file (in the style of cpio ... >x.cpio; cpio ... >>x.cpio) -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Jan Engelhardt wrote:
On Saturday 2013-10-26 10:35, Per Jessen wrote:
Interesting:
# file -bL initrd-3.11.6-1-pae.dracut ASCII cpio archive (SVR4 with no CRC)
# cpio --extract -d </boot/initrd-3.11.6-1-pae.dracut 2 blocks
# find . . ./kernel ./kernel/x86 ./kernel/x86/microcode
I guess the dracut initrd format is quite different to that of mkinitrd?
How big is your dracut-generated file, anyway? It looks more like there are no files at all in there.
It's about 5Mb: # l /boot/initrd-3.11.6-1-pae.dracut -rw-r--r-- 1 root root 5379420 Oct 25 10:45 /boot/initrd-3.11.6-1-pae.dracut
The other guess I can make is that there may be multiple cpio archives in that file (in the style of cpio ... >x.cpio; cpio ... >>x.cpio)
Do you know how to separate/extract those? -- Per Jessen, Zürich (14.6°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
В Sat, 26 Oct 2013 10:59:23 +0200 Per Jessen <per@computer.org> пишет:
Jan Engelhardt wrote:
On Saturday 2013-10-26 10:35, Per Jessen wrote:
Interesting:
# file -bL initrd-3.11.6-1-pae.dracut ASCII cpio archive (SVR4 with no CRC)
# cpio --extract -d </boot/initrd-3.11.6-1-pae.dracut 2 blocks
# find . . ./kernel ./kernel/x86 ./kernel/x86/microcode
I guess the dracut initrd format is quite different to that of mkinitrd?
How big is your dracut-generated file, anyway? It looks more like there are no files at all in there.
It's about 5Mb:
# l /boot/initrd-3.11.6-1-pae.dracut -rw-r--r-- 1 root root 5379420 Oct 25 10:45 /boot/initrd-3.11.6-1-pae.dracut
The other guess I can make is that there may be multiple cpio archives in that file (in the style of cpio ... >x.cpio; cpio ... >>x.cpio)
Do you know how to separate/extract those?
Good question. The first part is microcode archive, the second part - compressed initrd. I do not think you can easily get size of cpio archive from header, you would need to actually parse cpio stream to find EOF. Try "dracut --no-early-microcode". It will skip separate microcode archive then. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Andrey Borzenkov wrote:
В Sat, 26 Oct 2013 10:59:23 +0200 Per Jessen <per@computer.org> пишет:
Jan Engelhardt wrote:
On Saturday 2013-10-26 10:35, Per Jessen wrote:
Interesting:
# file -bL initrd-3.11.6-1-pae.dracut ASCII cpio archive (SVR4 with no CRC)
# cpio --extract -d </boot/initrd-3.11.6-1-pae.dracut 2 blocks
# find . . ./kernel ./kernel/x86 ./kernel/x86/microcode
I guess the dracut initrd format is quite different to that of mkinitrd?
How big is your dracut-generated file, anyway? It looks more like there are no files at all in there.
It's about 5Mb:
# l /boot/initrd-3.11.6-1-pae.dracut -rw-r--r-- 1 root root 5379420 Oct 25 10:45 /boot/initrd-3.11.6-1-pae.dracut
The other guess I can make is that there may be multiple cpio archives in that file (in the style of cpio ... >x.cpio; cpio ... >>x.cpio)
Do you know how to separate/extract those?
Good question. The first part is microcode archive, the second part - compressed initrd. I do not think you can easily get size of cpio archive from header, you would need to actually parse cpio stream to find EOF.
Try "dracut --no-early-microcode". It will skip separate microcode archive then.
Thanks Andrey, that did the trick, I can see the contents now. It looks like some iscsi stuff got included, but I see no iscsi config nor did my network module get included. -- Per Jessen, Zürich (17.3°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Per Jessen wrote:
Andrey Borzenkov wrote:
В Sat, 26 Oct 2013 10:59:23 +0200 Per Jessen <per@computer.org> пишет:
Jan Engelhardt wrote:
On Saturday 2013-10-26 10:35, Per Jessen wrote:
Interesting:
# file -bL initrd-3.11.6-1-pae.dracut ASCII cpio archive (SVR4 with no CRC)
# cpio --extract -d </boot/initrd-3.11.6-1-pae.dracut 2 blocks
# find . . ./kernel ./kernel/x86 ./kernel/x86/microcode
I guess the dracut initrd format is quite different to that of mkinitrd?
How big is your dracut-generated file, anyway? It looks more like there are no files at all in there.
It's about 5Mb:
# l /boot/initrd-3.11.6-1-pae.dracut -rw-r--r-- 1 root root 5379420 Oct 25 10:45 /boot/initrd-3.11.6-1-pae.dracut
The other guess I can make is that there may be multiple cpio archives in that file (in the style of cpio ... >x.cpio; cpio ...
x.cpio)
Do you know how to separate/extract those?
Good question. The first part is microcode archive, the second part - compressed initrd. I do not think you can easily get size of cpio archive from header, you would need to actually parse cpio stream to find EOF.
Try "dracut --no-early-microcode". It will skip separate microcode archive then.
Thanks Andrey, that did the trick, I can see the contents now. It looks like some iscsi stuff got included, but I see no iscsi config nor did my network module get included.
Any chance the dracut maintainer would comment? I'm much prepared to be told I'm at fault, I'm pretty much assuming dracut is as intelligent as mkinitrd and will work things out for me/itself. -- Per Jessen, Zürich (18.5°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
Per Jessen wrote:
Per Jessen wrote:
Andrey Borzenkov wrote:
В Sat, 26 Oct 2013 10:59:23 +0200 Per Jessen <per@computer.org> пишет:
Jan Engelhardt wrote:
On Saturday 2013-10-26 10:35, Per Jessen wrote:
Interesting:
# file -bL initrd-3.11.6-1-pae.dracut ASCII cpio archive (SVR4 with no CRC)
# cpio --extract -d </boot/initrd-3.11.6-1-pae.dracut 2 blocks
# find . . ./kernel ./kernel/x86 ./kernel/x86/microcode
I guess the dracut initrd format is quite different to that of mkinitrd?
How big is your dracut-generated file, anyway? It looks more like there are no files at all in there.
It's about 5Mb:
# l /boot/initrd-3.11.6-1-pae.dracut -rw-r--r-- 1 root root 5379420 Oct 25 10:45 /boot/initrd-3.11.6-1-pae.dracut
The other guess I can make is that there may be multiple cpio archives in that file (in the style of cpio ... >x.cpio; cpio ...
>x.cpio)
Do you know how to separate/extract those?
Good question. The first part is microcode archive, the second part - compressed initrd. I do not think you can easily get size of cpio archive from header, you would need to actually parse cpio stream to find EOF.
Try "dracut --no-early-microcode". It will skip separate microcode archive then.
Thanks Andrey, that did the trick, I can see the contents now. It looks like some iscsi stuff got included, but I see no iscsi config nor did my network module get included.
Any chance the dracut maintainer would comment? I'm much prepared to be told I'm at fault, I'm pretty much assuming dracut is as intelligent as mkinitrd and will work things out for me/itself.
Ping? -- Per Jessen, Zürich (6.9°C) http://www.hostsuisse.com/ - dedicated server rental in Switzerland. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (4)
-
Andrey Borzenkov
-
Felix Miata
-
Jan Engelhardt
-
Per Jessen