mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-10-29 11:32:30 +00:00
tegra-minimal-init: add delay and retry when looking up partition label
Another workaround for SDcard-based systems. Signed-off-by: Matt Madison <matt@madison.systems>
This commit is contained in:
committed by
Matt Madison
parent
dfd707a9f1
commit
d00be8a344
@@ -17,7 +17,13 @@ if [ "$foundslotsfx" != "yes" ]; then
|
||||
[ "$slotnum" != "1" ] || slotsfx="_b"
|
||||
fi
|
||||
fi
|
||||
blkid --probe 2>/dev/null
|
||||
rootdev=`blkid -l -t PARTLABEL=APP$slotsfx | cut -d: -f1`
|
||||
if [ -z "$rootdev" ]; then
|
||||
sleep 0.5
|
||||
blkid --probe 2>/dev/null
|
||||
rootdev=`blkid -l -t PARTLABEL=APP$slotsfx | cut -d: -f1`
|
||||
fi
|
||||
if [ -z "$rootdev" ]; then
|
||||
if [ -n "$mayberoot" ]; then
|
||||
rootdev="$mayberoot"
|
||||
|
||||
Reference in New Issue
Block a user