aboutsummaryrefslogtreecommitdiff
path: root/state
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-02-06 10:46:39 +0100
committerlonkaars <loek@pipeframe.xyz>2024-02-06 10:46:39 +0100
commitae327cc50fd9d3e59e9f60088243adfc69cb312e (patch)
tree4efe5520ba87a604cf35e3d5c00d196e214bf1ae /state
parentb854e8abb7e1ff0b43c9f99e9b641895e4d6c148 (diff)
fix busybox booting into root shellweek3
Diffstat (limited to 'state')
-rwxr-xr-xstate/gen5
1 files changed, 5 insertions, 0 deletions
diff --git a/state/gen b/state/gen
index ddaf9d1..720c1d3 100755
--- a/state/gen
+++ b/state/gen
@@ -77,6 +77,11 @@ if [ -n "$SDCARD_DISK" ] ; then
if ($6 != "ROOTFS") exit(1)
}' && SDCARD_FMT_OK=0
fi
+ else
+ # assume sd card is formatted correctly if SDCARD_PART_BOOT and
+ # SDCARD_PART_ROOTFS are already set
+ SDCARD_PART_OK=0
+ SDCARD_FMT_OK=0
fi
fi
set_state sdcard_part $SDCARD_PART_OK