diff options
authorPetr Štetiar <ynezz@true.cz>2011-05-04 01:10:00 +0200
committerAndrea Adami <andrea.adami@gmail.com>2011-05-04 01:10:00 +0200
commit36dfc0984867d6854a8f0e7ba9234af255b211a9 (patch)
parent51872fce3f8b2fcafa9d136e0ca7c22bc07b1787 (diff)
modutils-initscripts: fix wrong order of module loading happening in udev
In the current state, udev init script is loaded as 3rd and modutils.sh as 20th, so udevadm called in udev init script loads all kernel modules in some unpredictable order, not honoring in any way specified order of modules in /etc/modules. This causes some troubles mainly in the first boot. So to fix this we now move loading of the kernel modules just before we exec udev init script. Example of the current state: Starting udev rtc-m48t86 rtc-m48t86: rtc core: registered m48t86 as rtc0 rtc-m48t86 rtc-m48t86: battery ok ep93xx-rtc ep93xx-rtc: rtc core: registered ep93xx-rtc as rtc1 root@ts72xx:~# cat /etc/modules rtc-ep93xx ohci-hcd ts72xx_sbcinfo rtc-m48t86 As you can guess, this is really wrong behaviour, because I've rtc1 as the main time source for my system. root@ts72xx:~# cat /etc/default/hwclock HWCLOCKACCESS=yes HWCLOCKDEVICE=/dev/rtc1 Expected behaviour with this patch applied: Please wait: booting... ep93xx-rtc ep93xx-rtc: rtc core: registered ep93xx-rtc as rtc0 usbcore: registered new device driver usb ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ... rtc-m48t86 rtc-m48t86: rtc core: registered m48t86 as rtc1 rtc-m48t86 rtc-m48t86: battery ok Starting udev Signed-off-by: Petr Štetiar <ynezz@true.cz> Acked-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
1 files changed, 2 insertions, 2 deletions
diff --git a/recipes/modutils/modutils-initscripts.bb b/recipes/modutils/modutils-initscripts.bb
index 07f4810fc6..797acb3677 100644
--- a/recipes/modutils/modutils-initscripts.bb
+++ b/recipes/modutils/modutils-initscripts.bb
@@ -2,10 +2,10 @@ SECTION = "base"
DESCRIPTION = "modutils configuration files"
SRC_URI = "file://modutils.sh"
-PR = "r3"
+PR = "r4"
INITSCRIPT_NAME = "modutils.sh"
-INITSCRIPT_PARAMS = "start 20 S ."
+INITSCRIPT_PARAMS = "start 2 S ."
inherit update-rc.d