diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2012-09-27 15:20:51 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-09-28 11:07:40 +0100 |
commit | 39a091fe1da06641061b1e2bbf073ea9d9e495c7 (patch) | |
tree | 19961e44aaa4228c31a66c0b07770fdae8f6eef0 | |
parent | ffb6928f5783e5202d9849c3a185e29be1d41c63 (diff) | |
download | poky-39a091fe1da06641061b1e2bbf073ea9d9e495c7.tar.gz |
initramfs: Make mkdir not fail
This patch make "mkdir foo" not fail if foo already exists.
(From OE-Core rev: 2bf5026933b733701d4d339e01a4f5e4468f368e)
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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-live.sh | 6 |
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="" | |||
21 | UNIONFS="no" | 21 | UNIONFS="no" |
22 | 22 | ||
23 | early_setup() { | 23 | early_setup() { |
24 | mkdir /proc | 24 | mkdir -p /proc |
25 | mkdir /sys | 25 | mkdir -p /sys |
26 | mount -t proc proc /proc | 26 | mount -t proc proc /proc |
27 | mount -t sysfs sysfs /sys | 27 | mount -t sysfs sysfs /sys |
28 | 28 | ||
29 | # support modular kernel | 29 | # support modular kernel |
30 | modprobe isofs 2> /dev/null | 30 | modprobe isofs 2> /dev/null |
31 | 31 | ||
32 | mkdir /run | 32 | mkdir -p /run |
33 | udevd --daemon | 33 | udevd --daemon |
34 | udevadm trigger --action=add | 34 | udevadm trigger --action=add |
35 | } | 35 | } |