From 1216655d290422176e5f9309c8e532df7d84cad9 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Sun, 12 Jan 2025 00:23:15 +0100 Subject: [PATCH] correct place --- home.admin/config.scripts/blitz.data.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/home.admin/config.scripts/blitz.data.sh b/home.admin/config.scripts/blitz.data.sh index 3f9aaa730..eaff03e44 100644 --- a/home.admin/config.scripts/blitz.data.sh +++ b/home.admin/config.scripts/blitz.data.sh @@ -309,18 +309,18 @@ if [ "$1" = "status" ]; then # remove the storage device from the list listOfDevices=$(echo "${listOfDevices}" | grep -v "${storageDevice}") + if [ ${#storageDevice} -gt 0 ] && [ "${computerType}" = "pc" ]; then + echo "# on bare metal PC - storage device is the system boot device" + bootFromStorage=1 + bootFromSD=0 + fi + # no storage device found (system seems only device) if [ "${systemDevice}" = "${storageDevice}" ]; then scenario="error:no-storage" storageDevice="" storageSizeGB="" - if [ "${computerType}" = "pc" ]; then - echo "# on bare metal PC - storage device is the system boot device" - bootFromStorage=1 - bootFromSD=0 - fi - # Set SYSTEM elif [ ${#systemDevice} -eq 0 ]; then