summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/barebox-mark-successful-boot.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/barebox-mark-successful-boot.sh b/scripts/barebox-mark-successful-boot.sh
index 952512d..3120f57 100644
--- a/scripts/barebox-mark-successful-boot.sh
+++ b/scripts/barebox-mark-successful-boot.sh
@@ -3,7 +3,7 @@
DEFAULT_REMAINING_ATTEMPTS=3
DEFAULT_PRIORITY=20
-system=$(sed /proc/cmdline -ne "s/.*root=ubi0:\([^ ]*\).*/\1/p")
+system=$(sed /proc/cmdline -ne "s/\(^\|.* \)bootstate.active=\([^ ]*\).*/\2/p")
if [ -z "${system}" ]; then
echo "unable to detect system partition" >&2
exit 1