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:
Matt Madison
2022-09-05 09:50:14 -07:00
committed by Matt Madison
parent dfd707a9f1
commit d00be8a344

View File

@@ -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"