From bde3e235539d676ce05bc4ce7f01fa7ba8c4f3f8 Mon Sep 17 00:00:00 2001 From: eichehome Date: Tue, 12 Sep 2023 21:00:54 +0200 Subject: [PATCH] =?UTF-8?q?Code=20zum=20Finden=20der=20UUID=20einer=20Part?= =?UTF-8?q?ition=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script.uefi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.uefi b/script.uefi index 7abb3dc..a46da69 100755 --- a/script.uefi +++ b/script.uefi @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/bash -x ### Konstanten ### declare -A GUIDS="" @@ -134,8 +134,8 @@ find_uuid_for_partition () { local TYPE="$2" if [[ "$(existing_partitions "${DEVICE}" "${TYPE}")" == "yes" ]] then - uuid=$() - echo "uuid" + uuid=$(lsblk -lo PARTTYPE,PARTUUID "${DEVICE}" | grep "${GUIDS[${TYPE}]}" | awk '{ print $2 }') + echo "uuid: ${uuid}" else echo "null" fi