Statement zur Überprüfung der Dateisysteme geändert.

This commit is contained in:
eichehome 2023-07-26 01:17:32 +02:00
parent 462d256b25
commit 0f1ff21489

View file

@ -123,7 +123,7 @@ fi
#----------------------------# #----------------------------#
CHECK_FS_EXISTENCE_OUTPUT=$(lsblk -pldo NAME,PARTUUID,PARTTYPE,FSTYPE,FSVER "${DRIVE}[0-9]") CHECK_FS_EXISTENCE_OUTPUT=$(lsblk -plo NAME,PARTUUID,PARTTYPE,FSTYPE,FSVER | grep -i "${DRIVE}[0-9]")
declare -A INFO_ESP="" declare -A INFO_ESP=""
declare -A INFO_USR="" declare -A INFO_USR=""
declare -A INFO_USRHASH="" declare -A INFO_USRHASH=""
@ -137,7 +137,7 @@ CHECK_FS_USRHASH=$(echo "${CHECK_FS_EXISTENCE_OUTPUT}" | grep -i "77ff5f63-e7b6-
CHECK_FS_ROOT=$(echo "${CHECK_FS_EXISTENCE_OUTPUT}" | grep -i "4f68bce3-e8cd-4db1-96e7-fbcaf984b709" | grep -i "ext4") CHECK_FS_ROOT=$(echo "${CHECK_FS_EXISTENCE_OUTPUT}" | grep -i "4f68bce3-e8cd-4db1-96e7-fbcaf984b709" | grep -i "ext4")
if [[ ${CHECK_ESP} -eq 0 ]]; then if [[ ${CHECK_FS_ESP} -eq 0 ]]; then
echo "ESP-Dateisystem existiert nicht." echo "ESP-Dateisystem existiert nicht."
else else
echo "ESP-Dateisystem existiert." echo "ESP-Dateisystem existiert."