summaryrefslogtreecommitdiff
path: root/recipes/initrdscripts
diff options
context:
space:
mode:
authorOtavio Salvador <otavio@ossystems.com.br>2009-05-04 23:00:22 -0300
committerOtavio Salvador <otavio@ossystems.com.br>2009-05-20 23:23:23 -0300
commit031ff6c2f3e621c8131502394e6225d575dbcd70 (patch)
treee69d345ae3abd5d99e2cf2f85b8c2f2d6fac677e /recipes/initrdscripts
parent7d8c5ad168e3ee9f32e914427e8525e8f2961bdc (diff)
initramfs-uniboot: properly setup sysfs and tmp
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>
Diffstat (limited to 'recipes/initrdscripts')
-rw-r--r--recipes/initrdscripts/files/init.sh6
-rw-r--r--recipes/initrdscripts/initramfs-uniboot_1.0.bb2
2 files changed, 5 insertions, 3 deletions
diff --git a/recipes/initrdscripts/files/init.sh b/recipes/initrdscripts/files/init.sh
index 221b8f56b9..26fd57fce4 100644
--- a/recipes/initrdscripts/files/init.sh
+++ b/recipes/initrdscripts/files/init.sh
@@ -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
}
diff --git a/recipes/initrdscripts/initramfs-uniboot_1.0.bb b/recipes/initrdscripts/initramfs-uniboot_1.0.bb
index 07e94f1dfc..fcbbdbd2cc 100644
--- a/recipes/initrdscripts/initramfs-uniboot_1.0.bb
+++ b/recipes/initrdscripts/initramfs-uniboot_1.0.bb
@@ -1,5 +1,5 @@
SRC_URI = "file://init.sh"
-PR = "r10"
+PR = "r11"
DESCRIPTON = "A modular initramfs init script system."
RRECOMMENDS = "kernel-module-mtdblock"