summaryrefslogtreecommitdiff
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2012-09-27 15:20:51 +0100
committerSaul Wold <sgw@linux.intel.com>2012-09-28 01:14:02 -0700
commit2bf5026933b733701d4d339e01a4f5e4468f368e (patch)
tree0b8eb7ace97f7b7d8169a861d00deca8a2042e80 /meta/recipes-core
parentae5e2bd994e3f60d3803ab56e6ed34d08fbc56f0 (diff)
downloadopenembedded-core-2bf5026933b733701d4d339e01a4f5e4468f368e.tar.gz
openembedded-core-2bf5026933b733701d4d339e01a4f5e4468f368e.tar.bz2
openembedded-core-2bf5026933b733701d4d339e01a4f5e4468f368e.zip
initramfs: Make mkdir not fail
This patch make "mkdir foo" not fail if foo already exists. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/initrdscripts/files/init-live.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-live.sh b/meta/recipes-core/initrdscripts/files/init-live.sh
index fb7af31a13..2639308c28 100644
--- a/meta/recipes-core/initrdscripts/files/init-live.sh
+++ b/meta/recipes-core/initrdscripts/files/init-live.sh
@@ -21,15 +21,15 @@ ISOLINUX=""
UNIONFS="no"
early_setup() {
- mkdir /proc
- mkdir /sys
+ mkdir -p /proc
+ mkdir -p /sys
mount -t proc proc /proc
mount -t sysfs sysfs /sys
# support modular kernel
modprobe isofs 2> /dev/null
- mkdir /run
+ mkdir -p /run
udevd --daemon
udevadm trigger --action=add
}