aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/initrdscripts
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/initrdscripts
parentae5e2bd994e3f60d3803ab56e6ed34d08fbc56f0 (diff)
downloadopenembedded-core-contrib-2bf5026933b733701d4d339e01a4f5e4468f368e.tar.gz
openembedded-core-contrib-2bf5026933b733701d4d339e01a4f5e4468f368e.tar.bz2
openembedded-core-contrib-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/initrdscripts')
-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 fb7af31a130..2639308c28a 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
}