if [ ! -f work/rootfs/etc/mender/mender.conf ]; then
if [ ! -f work/rootfs/etc/mender/mender.conf ]; then
log_error "No Mender configuration file found in the work folder."
log_error 'No Mender configuration file found in the work folder. Either run a bootstrap script and pass the output directory as an overlay to mender-convert, or pass your own overlay with an $OVERLAY/etc/mender/mender.conf file.'
exit 1
exit 1
fi
fi
@ -32,4 +32,4 @@ EOF
log_warn "New mender.conf contents: $(cat work/rootfs/etc/mender/mender.conf)"
log_warn "New mender.conf contents: $(cat work/rootfs/etc/mender/mender.conf)"