mirror of
https://github.com/lingble/meta-tegra.git
synced 2025-11-01 12:57:53 +00:00
and name them with prefix 'tegra' instead of 'tegraXXX', since they apply across multiple tegra platforms. Signed-off-by: Matt Madison <matt@madison.systems>
19 lines
433 B
Bash
19 lines
433 B
Bash
slotsfx=""
|
|
mayberoot=""
|
|
for bootarg in `cat /proc/cmdline`; do
|
|
case "$bootarg" in
|
|
boot.slot_suffix=*) slotsfx="${bootarg##boot.slot_suffix=}" ;;
|
|
root=*) mayberoot="${bootarg##root=}" ;;
|
|
ro) opt="ro" ;;
|
|
rootwait) wait="yes" ;;
|
|
esac
|
|
done
|
|
rootdev=`blkid -l -t PARTLABEL=APP$slotsfx | cut -d: -f1`
|
|
if [ -z "$rootdev" ]; then
|
|
if [ -n "$mayberoot" ]; then
|
|
rootdev="$mayberoot"
|
|
else
|
|
rootdev="/dev/mmcblk0p1"
|
|
fi
|
|
fi
|