initramfs-uniboot: properly setup sysfs and tmp
authorOtavio Salvador <otavio@ossystems.com.br>
Tue, 5 May 2009 02:00:22 +0000 (23:00 -0300)
committerOtavio Salvador <otavio@ossystems.com.br>
Thu, 21 May 2009 02:23:23 +0000 (23:23 -0300)
To make life easier for everybody it is nice to have early_setup to
avoid problems with mdev/udev usage. As a bonus, it also adds a /tmp
dir since some tools require it to exist and it won't hurt anyway.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
recipes/initrdscripts/files/init.sh
recipes/initrdscripts/initramfs-uniboot_1.0.bb

index 221b8f5..26fd57f 100644 (file)
@@ -5,9 +5,11 @@ BOOT_ROOT=
 ROOT_DEVICE=
 
 early_setup() {
-    mkdir /proc
+    mkdir -p /proc /sys /mnt /tmp
+
     mount -t proc proc /proc
-    mkdir /mnt
+    mount -t sysfs sysfs /sys
+
     modprobe -q mtdblock
 }
 
index 07e94f1..fcbbdbd 100644 (file)
@@ -1,5 +1,5 @@
 SRC_URI = "file://init.sh"
-PR = "r10"
+PR = "r11"
 DESCRIPTON = "A modular initramfs init script system."
 RRECOMMENDS = "kernel-module-mtdblock"