Skip to contentSkip to conversation

initramfs-framework: mdev: Add a runtime dependency on busybox-mdev

PATCH New Otavio Salvador 1 participant 2 messages Jun 20, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 initramfs-framework: mdev: Add a runtime dependency on busybox-mdev

The mdev support relies on the mdev support inside busybox, which thus builds the busybox-mdev package. Adding the runtime dependency ensures its installation fails if mdev support is disabled.

---

 meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/initrdscripts/initramfs-framework_1.0.bb +1 -1
index 0664a95..e5cf9cb 100644
@@ -50,7 +50,7 @@ PACKAGES = "${PN}-base \
 FILES_${PN}-base = "/init /init.d/99-finish /dev"
 
 SUMMARY_initramfs-module-mdev = "initramfs support for mdev"
-RDEPENDS_initramfs-module-mdev = "${PN}-base"
+RDEPENDS_initramfs-module-mdev = "${PN}-base busybox-mdev"
 FILES_initramfs-module-mdev = "/init.d/01-mdev"
 
 SUMMARY_initramfs-module-udev = "initramfs support for udev"
Signature · 1 line
2.8.3
#1 lore raw

PATCH 2/2 initramfs-framework: base: Ensures /run/lock is available

Depending on the module we use, the /run/lock may be required. This creates it as part of initial setup and thus makes it available for every sub module.

---

 meta/recipes-core/initrdscripts/initramfs-framework/init | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/initrdscripts/initramfs-framework/init +2 -2
index 204f237..37527a8 100755
@@ -76,8 +76,8 @@ MODULES_DIR=/init.d  # place to look for modules
 # make mount stop complaining about missing /etc/fstab
 touch /etc/fstab
 
-# initialize /proc, /sys and /var/lock
-mkdir -p /proc /sys /var/lock
+# initialize /proc, /sys, /run/lock and /var/lock
+mkdir -p /proc /sys /run/lock /var/lock
 mount -t proc proc /proc
 mount -t sysfs sysfs /sys
 
Signature · 1 line
2.8.3