Skip to content

Commit c657a82

Browse files
committed
log before you blink
1 parent d32432f commit c657a82

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

init-script

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ mount_stowaways() {
183183
mount $DATA_PARTITION /data
184184
retval=$?
185185
if [ $retval -ne 0 ] ; then
186-
blink 5
187186
log "Failed to mount /data [$retval]" >> /diagnosis.log
187+
blink 5
188188
DEBUG_REASON="/data not mounted"
189189
return
190190
fi
@@ -193,8 +193,8 @@ mount_stowaways() {
193193
mount /data/rootfs.img /target
194194
retval=$?
195195
if [ $retval -ne 0 ] ; then
196-
blink 6
197196
log "Failed to mount /target [$retval]" >> /diagnosis.log
197+
blink 6
198198
DEBUG_REASON="/target not mounted"
199199
return
200200
fi
@@ -408,8 +408,8 @@ if [ "$DONE_SWITCH" = "no" ]; then
408408
echo "hybris-boot: Booting $INIT in real rootfs" > /target/data/init-stderrout
409409
exec switch_root /target $INIT >> /target/data/init-stderrout 2>&1
410410
fi
411-
blink 7
412411
log "after exec switch_root"
412+
blink 7
413413
run_debug_session "Failed to boot init in real rootfs"
414414

415415
else

0 commit comments

Comments
 (0)