diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2011-12-30 15:58:47 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-06 12:11:33 +0000 |
commit | f51ecaf349d4347c75596db76d407a2f20a6f3f1 (patch) | |
tree | c7eb7c7474f79eab6b121a7c9b985073123bbb01 /meta | |
parent | ec287053967753232575c25f23c1169b87026006 (diff) | |
download | poky-f51ecaf349d4347c75596db76d407a2f20a6f3f1.tar.gz |
initscripts: avoid mounting /sys if it is already mounted
(From OE-Core rev: fdb3d74458cd36a0fe53ee097394acc37d658ce9)
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh | 4 | ||||
-rw-r--r-- | meta/recipes-core/initscripts/initscripts_1.0.bb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh b/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh index be28bb35bf..bd87dcddd2 100644 --- a/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh +++ b/meta/recipes-core/initscripts/initscripts-1.0/sysfs.sh | |||
@@ -14,6 +14,6 @@ if [ -e /proc ] && ! [ -e /proc/mounts ]; then | |||
14 | mount -t proc proc /proc | 14 | mount -t proc proc /proc |
15 | fi | 15 | fi |
16 | 16 | ||
17 | if [ -e /sys ] && grep -q sysfs /proc/filesystems; then | 17 | if [ -e /sys ] && grep -q sysfs /proc/filesystems && ! [ -e /sys/class ]; then |
18 | mount sysfs /sys -t sysfs | 18 | mount -t sysfs sysfs /sys |
19 | fi | 19 | fi |
diff --git a/meta/recipes-core/initscripts/initscripts_1.0.bb b/meta/recipes-core/initscripts/initscripts_1.0.bb index ffca817cea..98f5e9bf65 100644 --- a/meta/recipes-core/initscripts/initscripts_1.0.bb +++ b/meta/recipes-core/initscripts/initscripts_1.0.bb | |||
@@ -3,7 +3,7 @@ DESCRIPTION = "Initscripts provide the basic system startup initialization scrip | |||
3 | SECTION = "base" | 3 | SECTION = "base" |
4 | LICENSE = "GPLv2" | 4 | LICENSE = "GPLv2" |
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" |
6 | PR = "r127" | 6 | PR = "r128" |
7 | 7 | ||
8 | INHIBIT_DEFAULT_DEPS = "1" | 8 | INHIBIT_DEFAULT_DEPS = "1" |
9 | 9 | ||