mirror of
https://git.yoctoproject.org/poky
synced 2026-05-05 07:39:49 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
ec28705396
commit
f51ecaf349
@@ -14,6 +14,6 @@ if [ -e /proc ] && ! [ -e /proc/mounts ]; then
|
||||
mount -t proc proc /proc
|
||||
fi
|
||||
|
||||
if [ -e /sys ] && grep -q sysfs /proc/filesystems; then
|
||||
mount sysfs /sys -t sysfs
|
||||
if [ -e /sys ] && grep -q sysfs /proc/filesystems && ! [ -e /sys/class ]; then
|
||||
mount -t sysfs sysfs /sys
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user