mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-20 04:37:19 +02:00
fix storage format
This commit is contained in:
@@ -607,6 +607,7 @@ if [ "${scenario}" != "ready" ] ; then
|
|||||||
# add info if a flag shows that install medium was tried before
|
# add info if a flag shows that install medium was tried before
|
||||||
if [ -f "/home/admin/systemcopy.flag" ]; then
|
if [ -f "/home/admin/systemcopy.flag" ]; then
|
||||||
/home/admin/_cache.sh set "system_setup_secondtry" "1"
|
/home/admin/_cache.sh set "system_setup_secondtry" "1"
|
||||||
|
rm /home/admin/systemcopy.flag
|
||||||
else
|
else
|
||||||
/home/admin/_cache.sh set "system_setup_secondtry" "0"
|
/home/admin/_cache.sh set "system_setup_secondtry" "0"
|
||||||
fi
|
fi
|
||||||
@@ -711,7 +712,7 @@ if [ "${scenario}" != "ready" ] ; then
|
|||||||
/home/admin/_cache.sh set message "copying system"
|
/home/admin/_cache.sh set message "copying system"
|
||||||
|
|
||||||
# STORAGE
|
# STORAGE
|
||||||
if [ ${#storageDevice} -gt 0 ] && [ "${storageMountedPath}" = "0" ]; then
|
if [ ${#storageDevice} -gt 0 ] && [ ${#storageMountedPath} -eq 0 ]; then
|
||||||
/home/admin/_cache.sh set message "Init STORAGE Drive"
|
/home/admin/_cache.sh set message "Init STORAGE Drive"
|
||||||
error=""
|
error=""
|
||||||
source <(/home/admin/config.scripts/blitz.data.sh setup STORAGE "${storageDevice}" "${combinedDataStorage}" "${bootFromStorage}")
|
source <(/home/admin/config.scripts/blitz.data.sh setup STORAGE "${storageDevice}" "${combinedDataStorage}" "${bootFromStorage}")
|
||||||
|
@@ -87,6 +87,21 @@ if [ "${setupPhase}" == "migration" ]; then
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
############################################
|
||||||
|
# Fix: BOOT ORDER CHANGE FAILED
|
||||||
|
source <(/home/admin/_cache.sh get system_setup_secondtry)
|
||||||
|
if [ "${system_setup_secondtry}" == "1" ]; then
|
||||||
|
whiptail --title " BOOT ORDER CHANGE FAILED? " --msgbox "
|
||||||
|
You already ran a setup/recover and copied the system to SSD/NVMe. But it booted again from the old install medium. To fix it:
|
||||||
|
|
||||||
|
Press OK
|
||||||
|
Wait until shutdown.
|
||||||
|
Remove install medium.
|
||||||
|
Power up again." 16 50
|
||||||
|
sudo shutdown now
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# fresh import setup values
|
# fresh import setup values
|
||||||
source /home/admin/raspiblitz.info
|
source /home/admin/raspiblitz.info
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user