Skip to content

Commit

Permalink
log before you blink
Browse files Browse the repository at this point in the history
  • Loading branch information
doniks committed Feb 4, 2018
1 parent d32432f commit c657a82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions init-script
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ mount_stowaways() {
mount $DATA_PARTITION /data
retval=$?
if [ $retval -ne 0 ] ; then
blink 5
log "Failed to mount /data [$retval]" >> /diagnosis.log
blink 5
DEBUG_REASON="/data not mounted"
return
fi
Expand All @@ -193,8 +193,8 @@ mount_stowaways() {
mount /data/rootfs.img /target
retval=$?
if [ $retval -ne 0 ] ; then
blink 6
log "Failed to mount /target [$retval]" >> /diagnosis.log
blink 6
DEBUG_REASON="/target not mounted"
return
fi
Expand Down Expand Up @@ -408,8 +408,8 @@ if [ "$DONE_SWITCH" = "no" ]; then
echo "hybris-boot: Booting $INIT in real rootfs" > /target/data/init-stderrout
exec switch_root /target $INIT >> /target/data/init-stderrout 2>&1
fi
blink 7
log "after exec switch_root"
blink 7
run_debug_session "Failed to boot init in real rootfs"

else
Expand Down

0 comments on commit c657a82

Please sign in to comment.