[opensuse-arm] Dracut does not add sunxi-mmc to initrd
Hi, While building a JeOS image for sunxi I found a problem with the current version of dracut (0.37) in factory. It doesn't include the needed kernel module (sunxi-mmc) when creating the initrd. After the first boot the root partition cannot be found. This seems to be already fixed in dracut 0.38 (see bug https://bugzilla.redhat.com/show_bug.cgi?id=1097301) not only for sunxi but also for other boards. The solutions are: - Patch the current dracut to include sunxi-mmc (the patch is rather trivial). - Update dracut in factory to 0.38 and squash all the new bugs that can appear. -- Oscar. Cheers, -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Hi, Am 15.11.2014 um 20:38 schrieb Oscar C:
While building a JeOS image for sunxi I found a problem with the current version of dracut (0.37) in factory. It doesn't include the needed kernel module (sunxi-mmc) when creating the initrd. After the first boot the root partition cannot be found. This seems to be already fixed in dracut 0.38 (see bug https://bugzilla.redhat.com/show_bug.cgi?id=1097301) not only for sunxi but also for other boards. The solutions are:
- Patch the current dracut to include sunxi-mmc (the patch is rather trivial). - Update dracut in factory to 0.38 and squash all the new bugs that can appear.
Our JeOS kiwi files used to have a wildcard rule to include mmc drivers. Personally I add the respective module(s) to my /etc/sysconfig/kernel. The same issue as for MMC exists for AHCI (INITRD_MODULES="ahci_sunxi"). Thanks for the update on dracut. Regards, Andreas -- SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 21284 AG Nürnberg -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Am 16.11.2014 um 16:34 schrieb Andreas Färber <afaerber@suse.de>:
Hi,
Am 15.11.2014 um 20:38 schrieb Oscar C: While building a JeOS image for sunxi I found a problem with the current version of dracut (0.37) in factory. It doesn't include the needed kernel module (sunxi-mmc) when creating the initrd. After the first boot the root partition cannot be found. This seems to be already fixed in dracut 0.38 (see bug https://bugzilla.redhat.com/show_bug.cgi?id=1097301) not only for sunxi but also for other boards. The solutions are:
- Patch the current dracut to include sunxi-mmc (the patch is rather trivial). - Update dracut in factory to 0.38 and squash all the new bugs that can appear.
Our JeOS kiwi files used to have a wildcard rule to include mmc drivers.
Personally I add the respective module(s) to my /etc/sysconfig/kernel. The same issue as for MMC exists for AHCI (INITRD_MODULES="ahci_sunxi").
Thanks for the update on dracut.
Right, we also have similar logic in place already for other boards. Please check out config.sh :) Alex
Regards, Andreas
-- SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 21284 AG Nürnberg -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
-- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
El 2014-11-16 20:33, Alexander Graf escribió: Hi,
Am 16.11.2014 um 16:34 schrieb Andreas Färber <afaerber@suse.de>:
Hi,
Am 15.11.2014 um 20:38 schrieb Oscar C: While building a JeOS image for sunxi I found a problem with the current version of dracut (0.37) in factory. It doesn't include the needed kernel module (sunxi-mmc) when creating the initrd. After the first boot the root partition cannot be found. This seems to be already fixed in dracut 0.38 (see bug https://bugzilla.redhat.com/show_bug.cgi?id=1097301) not only for sunxi but also for other boards. The solutions are:
- Patch the current dracut to include sunxi-mmc (the patch is rather trivial). - Update dracut in factory to 0.38 and squash all the new bugs that can appear.
Our JeOS kiwi files used to have a wildcard rule to include mmc drivers.
Personally I add the respective module(s) to my /etc/sysconfig/kernel. The same issue as for MMC exists for AHCI (INITRD_MODULES="ahci_sunxi").
Thanks for the update on dracut.
Right, we also have similar logic in place already for other boards. Please check out config.sh :)
Thanks for the hint. I discovered why even though in config.sh there's a line adding sunxi-mmc to dracut, I doesn't work: if [[ "$kiwi_iname" == *"-cubietruck" ]] || [[ "$kiwi_iname" == *"-cubieboard*" ]]; then # Old initrd config file sed -i 's/INITRD_MODULES="/INITRD_MODULES="sunxi-mmc /' /etc/sysconfig/kernel # New dracut (initrd) config file echo 'add_drivers+="sunxi-mmc"' > /etc/dracut.conf.d/sunxi_modules.conf fi I will prepare a SR with all the fixes needed to boot the cubieboard. -- Cheers -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Andreas Färber <afaerber@suse.de> writes:
Personally I add the respective module(s) to my /etc/sysconfig/kernel.
/etc/sysconfig/kernel no longer exists. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Am 17.11.2014 um 09:55 schrieb Andreas Schwab:
Andreas Färber <afaerber@suse.de> writes:
Personally I add the respective module(s) to my /etc/sysconfig/kernel.
/etc/sysconfig/kernel no longer exists.
In Factory you mean? In 13.2 it does. Andreas -- SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 21284 AG Nürnberg -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 17/11/2014 11:18, Andreas Färber a écrit :
Am 17.11.2014 um 09:55 schrieb Andreas Schwab:
Andreas Färber <afaerber@suse.de> writes:
Personally I add the respective module(s) to my /etc/sysconfig/kernel. /etc/sysconfig/kernel no longer exists. In Factory you mean? In 13.2 it does.
Dracut does not use it. You should use /etc/dracut.conf.d/*.conf files insead. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Am 17.11.2014 um 11:24 schrieb Guillaume Gardet:
Le 17/11/2014 11:18, Andreas Färber a écrit :
Am 17.11.2014 um 09:55 schrieb Andreas Schwab:
Andreas Färber <afaerber@suse.de> writes:
Personally I add the respective module(s) to my /etc/sysconfig/kernel. /etc/sysconfig/kernel no longer exists. In Factory you mean? In 13.2 it does.
Dracut does not use it. You should use /etc/dracut.conf.d/*.conf files insead.
True, but mkinitrd wraps dracut and did use it last time I tried. Did that change, i.e. are rpm post scripts calling dracut directly now? Andreas -- SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 21284 AG Nürnberg -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Le 17/11/2014 11:27, Andreas Färber a écrit :
Am 17.11.2014 um 11:24 schrieb Guillaume Gardet:
Le 17/11/2014 11:18, Andreas Färber a écrit :
Am 17.11.2014 um 09:55 schrieb Andreas Schwab:
Andreas Färber <afaerber@suse.de> writes:
Personally I add the respective module(s) to my /etc/sysconfig/kernel. /etc/sysconfig/kernel no longer exists. In Factory you mean? In 13.2 it does. Dracut does not use it. You should use /etc/dracut.conf.d/*.conf files insead. True, but mkinitrd wraps dracut and did use it last time I tried. Did that change, i.e. are rpm post scripts calling dracut directly now?
Last time I checked, /etc/sysconfig/kernel, was not used by dracut (I mean adding modules deps in this file had no effect). That is why I updated config.sh from JeOS to use new files instead. Guillaume -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
Andreas Färber <afaerber@suse.de> writes:
True, but mkinitrd wraps dracut and did use it last time I tried.
I wouldn't count on everyone still using the mkinitrd wrapper. Andreas. -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-arm+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-arm+owner@opensuse.org
participants (5)
-
Alexander Graf
-
Andreas Färber
-
Andreas Schwab
-
Guillaume Gardet
-
Oscar C