mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 15:10:38 +01:00
add more debug info
This commit is contained in:
parent
03f9daa98b
commit
5771035584
1 changed files with 9 additions and 1 deletions
|
@ -465,7 +465,7 @@ if [ ${isMounted} -eq 0 ]; then
|
||||||
|
|
||||||
# refresh data from info file
|
# refresh data from info file
|
||||||
source ${infoFile}
|
source ${infoFile}
|
||||||
echo "# PROVISION PROCESS with setupPhase(${setupPhase})"
|
echo "# PROVISION PROCESS with setupPhase(${setupPhase})" >> $logFile
|
||||||
|
|
||||||
# mark system on sd card as in setup process
|
# mark system on sd card as in setup process
|
||||||
echo "the provision process was started but did not finish yet" > /home/admin/provision.flag
|
echo "the provision process was started but did not finish yet" > /home/admin/provision.flag
|
||||||
|
@ -492,6 +492,7 @@ if [ ${isMounted} -eq 0 ]; then
|
||||||
# if setup - run provision setup first
|
# if setup - run provision setup first
|
||||||
if [ "${setupPhase}" == "setup" ]; then
|
if [ "${setupPhase}" == "setup" ]; then
|
||||||
echo "Calling _provision.setup.sh for basic setup tasks .." >> $logFile
|
echo "Calling _provision.setup.sh for basic setup tasks .." >> $logFile
|
||||||
|
sed -i "s/^message=.*/message='Provision Setup'/g" ${infoFile}
|
||||||
sudo /home/admin/_provision.setup.sh
|
sudo /home/admin/_provision.setup.sh
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "EXIT BECAUSE OF ERROR STATE ($?)" >> $logFile
|
echo "EXIT BECAUSE OF ERROR STATE ($?)" >> $logFile
|
||||||
|
@ -503,6 +504,7 @@ if [ ${isMounted} -eq 0 ]; then
|
||||||
# if migration - run the migration provision first
|
# if migration - run the migration provision first
|
||||||
if [ "${setupPhase}" == "migration" ]; then
|
if [ "${setupPhase}" == "migration" ]; then
|
||||||
echo "Calling _provision.migration.sh for possible migrations .." >> $logFile
|
echo "Calling _provision.migration.sh for possible migrations .." >> $logFile
|
||||||
|
sed -i "s/^message=.*/message='Provision migration'/g" ${infoFile}
|
||||||
sudo /home/admin/_provision.migration.sh
|
sudo /home/admin/_provision.migration.sh
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "EXIT BECAUSE OF ERROR STATE ($?)" >> $logFile
|
echo "EXIT BECAUSE OF ERROR STATE ($?)" >> $logFile
|
||||||
|
@ -514,6 +516,7 @@ if [ ${isMounted} -eq 0 ]; then
|
||||||
# if update/recovery/migration
|
# if update/recovery/migration
|
||||||
if [ "${setupPhase}" == "update" ] || [ "${setupPhase}" == "recovery" ] || [ "${setupPhase}" == "migration" ]; then
|
if [ "${setupPhase}" == "update" ] || [ "${setupPhase}" == "recovery" ] || [ "${setupPhase}" == "migration" ]; then
|
||||||
echo "Calling _provision.update.sh .." >> $logFile
|
echo "Calling _provision.update.sh .." >> $logFile
|
||||||
|
sed -i "s/^message=.*/message='Provision Update/Recovery/Migration'/g" ${infoFile}
|
||||||
sudo /home/admin/_provision.update.sh
|
sudo /home/admin/_provision.update.sh
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "EXIT BECAUSE OF ERROR STATE ($?)" >> $logFile
|
echo "EXIT BECAUSE OF ERROR STATE ($?)" >> $logFile
|
||||||
|
@ -522,13 +525,18 @@ if [ ${isMounted} -eq 0 ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# finalize provisioning
|
||||||
echo "Calling _bootstrap.provision.sh for general system provisioning (${setupPhase}) .." >> $logFile
|
echo "Calling _bootstrap.provision.sh for general system provisioning (${setupPhase}) .." >> $logFile
|
||||||
|
sed -i "s/^message=.*/message='Provision Basics'/g" ${infoFile}
|
||||||
sudo /home/admin/_provision_.sh
|
sudo /home/admin/_provision_.sh
|
||||||
if [ "$?" != "0" ]; then
|
if [ "$?" != "0" ]; then
|
||||||
echo "EXIT BECAUSE OF ERROR STATE" >> $logFile
|
echo "EXIT BECAUSE OF ERROR STATE" >> $logFile
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# mark provision process done
|
||||||
|
sed -i "s/^message=.*/message='Provision Done'/g" ${infoFile}
|
||||||
|
|
||||||
###################################################
|
###################################################
|
||||||
# WAIT LOOP: AFTER FRESH SETUP, MIGRATION
|
# WAIT LOOP: AFTER FRESH SETUP, MIGRATION
|
||||||
# successfull update & recover can skip this
|
# successfull update & recover can skip this
|
||||||
|
|
Loading…
Add table
Reference in a new issue