Code zum Finden der UUID einer Partition hinzugefügt.
This commit is contained in:
parent
aa18bc5e73
commit
bde3e23553
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue