]> code.ossystems Code Review - openembedded-core.git/commit
busybox/mdev-mount.sh: Fix partition detect and cleanup mountpoint on fail
authorMike Looijmans <mike.looijmans@topic.nl>
Fri, 24 Aug 2018 07:21:44 +0000 (09:21 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 27 Sep 2018 11:16:45 +0000 (12:16 +0100)
commit38f1648f1472f70a3e747f270cc3230b5993d94b
tree28344bcfcecd0eb031bb1daab7de53a5eb8c2a9c
parent996247ba7dfffbeb444f793f7e105fcfb5ffa939
busybox/mdev-mount.sh: Fix partition detect and cleanup mountpoint on fail

This fixes issues mainly seen when mounting eMMC devices:

The wildcard /sys/block/${DEVBASE}/${DEVBASE}*1 matches both "mmcblk0p1"
and "mmcblk0boot1" for example, and this results in syntax errors. Fix this
by searching for a "partition" file instead, which only exists for real
partitions and not 'fakes' like the eMMC extra's.

When mount fails, the mountpoint file is left behind, causing later attempts
at auto-mounting it to fail. If mount fails, remove the mountpoint, leaving
the system in the state as it was before the mount attempt.

(From OE-Core rev: 8645c0419456c1bd3ae15a9a7dd2b2e9a960eaf4)

Signed-off-by: Mike Looijmans <mike.looijmans@topic.nl>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/recipes-core/busybox/files/mdev-mount.sh