mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-27 12:06:36 +02:00
fix setup system
This commit is contained in:
@@ -276,7 +276,7 @@ if [ "$action" = "status" ]; then
|
|||||||
else
|
else
|
||||||
# system might run from SD card
|
# system might run from SD card
|
||||||
bootFromStorage=0
|
bootFromStorage=0
|
||||||
# check if boot partition is on SD card (mmcblk)
|
# check if boot partition is on SD card (mmcblk) - staus quo, might change thru proposed layout
|
||||||
bootFromSD=$(lsblk | grep mmcblk | grep -c /boot)
|
bootFromSD=$(lsblk | grep mmcblk | grep -c /boot)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -500,14 +500,10 @@ if [ "$action" = "status" ]; then
|
|||||||
elif [ ${#storageMountedPath} -gt 0 ] && [ ${#dataMountedPath} -gt 0 ] && [ ${#systemMountedPath} -gt 0 ]; then
|
elif [ ${#storageMountedPath} -gt 0 ] && [ ${#dataMountedPath} -gt 0 ] && [ ${#systemMountedPath} -gt 0 ]; then
|
||||||
scenario="ready"
|
scenario="ready"
|
||||||
|
|
||||||
# ready: RaspberryPi+BootNVMe, Laptop or VM with patched thru USB drive
|
# ready: RaspberryPi, Laptop or VM with patched thru USB drive
|
||||||
elif [ ${#storageMountedPath} -gt 0 ] && [ ${combinedDataStorage} -eq 1 ]; then
|
elif [ ${#storageMountedPath} -gt 0 ] && [ ${combinedDataStorage} -eq 1 ]; then
|
||||||
scenario="ready"
|
scenario="ready"
|
||||||
|
|
||||||
# ready: Old RaspberryPi
|
|
||||||
elif [ ${#storageMountedPath} -gt 0 ] && [ ${combinedDataStorage} -eq 1 ] && [ ${bootFromSD} -eq 1 ] ; then
|
|
||||||
scenario="ready"
|
|
||||||
|
|
||||||
# recover: drives there but unmounted & blitz config exists (check raspiblitz.conf with -inspect if its update)
|
# recover: drives there but unmounted & blitz config exists (check raspiblitz.conf with -inspect if its update)
|
||||||
elif [ ${#storageDevice} -gt 0 ] && [ ${#storageMountedPath} -eq 0 ] && [ ${dataConfigFound} -eq 1 ] && [ "${systemMountedPath}" != "/" ] && [ ${bootFromSD} -eq 0 ]; then
|
elif [ ${#storageDevice} -gt 0 ] && [ ${#storageMountedPath} -eq 0 ] && [ ${dataConfigFound} -eq 1 ] && [ "${systemMountedPath}" != "/" ] && [ ${bootFromSD} -eq 0 ]; then
|
||||||
scenario="recover:system" # auto update system before recover
|
scenario="recover:system" # auto update system before recover
|
||||||
@@ -517,7 +513,7 @@ if [ "$action" = "status" ]; then
|
|||||||
scenario="recover"
|
scenario="recover"
|
||||||
|
|
||||||
# setup: drives there but unmounted & no blitz config exists & booted from install media
|
# setup: drives there but unmounted & no blitz config exists & booted from install media
|
||||||
elif [ ${#storageDevice} -gt 0 ] && [ ${#storageMountedPath} -eq 0 ] && [ ${dataConfigFound} -eq 0 ] && [ "${systemMountedPath}" != "/" ]; then
|
elif [ ${#storageDevice} -gt 0 ] && [ ${#storageMountedPath} -eq 0 ] && [ ${dataConfigFound} -eq 0 ] && [ "${systemMountedPath}" != "/" ] && [ ${bootFromSD} -eq 0 ]; then
|
||||||
scenario="setup:system" # ask user to change bootdrive before setup
|
scenario="setup:system" # ask user to change bootdrive before setup
|
||||||
|
|
||||||
# setup: drives there but unmounted & no blitz config exists
|
# setup: drives there but unmounted & no blitz config exists
|
||||||
|
Reference in New Issue
Block a user