From 031ff6c2f3e621c8131502394e6225d575dbcd70 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Mon, 4 May 2009 23:00:22 -0300 Subject: [PATCH] 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 --- recipes/initrdscripts/files/init.sh | 6 ++++-- recipes/initrdscripts/initramfs-uniboot_1.0.bb | 2 +- 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" -- 2.39.5