Update storage-test.sh

This commit is contained in:
2025-05-04 10:40:14 -05:00
parent 936170c65f
commit 4302e8510a

View File

@@ -135,6 +135,9 @@ else
fi fi
fi fi
echo "HERE: $ChosenPartition"
exit 0
# Get host board information # Get host board information
HostArchitecture=$(uname -m) HostArchitecture=$(uname -m)
HostOSInfo=$(cat /etc/os-release | sed 's/;/!/g') HostOSInfo=$(cat /etc/os-release | sed 's/;/!/g')
@@ -331,7 +334,7 @@ fi
# Run sync to make sure all changes have been written to disk # Run sync to make sure all changes have been written to disk
sync sync
if [ "$ChosenPartition" != "" ]; then if [ -z "$ChosenPartition" ]; then
# User did not provide a partition/folder, continue with rootfs # User did not provide a partition/folder, continue with rootfs
# --Get system boot drive information-- # --Get system boot drive information--
# Find from mountpoint first # Find from mountpoint first
@@ -380,7 +383,7 @@ if [ -z "$BootDriveSuffix" ]; then
BootDriveSuffix="$BootDrive" BootDriveSuffix="$BootDrive"
fi fi
if [ "$ChosenPartition" != "" ]; then if [ -z "$ChosenPartition" ]; then
Print_Style "System rootfs drive (/) has been detected as $BootDrive ($BootDriveSuffix)" "$YELLOW" Print_Style "System rootfs drive (/) has been detected as $BootDrive ($BootDriveSuffix)" "$YELLOW"
else else
Print_Style "Chosen partition ($ChosenPartition) has been detected as $BootDrive ($BootDriveSuffix)" "$YELLOW" Print_Style "Chosen partition ($ChosenPartition) has been detected as $BootDrive ($BootDriveSuffix)" "$YELLOW"