Anfang der Ausgabe des Auswahlmenüs implementiert.
This commit is contained in:
parent
bde3e23553
commit
787f4c2d02
1 changed files with 9 additions and 4 deletions
13
script.uefi
13
script.uefi
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash -x
|
#!/bin/bash
|
||||||
### Konstanten ###
|
### Konstanten ###
|
||||||
|
|
||||||
declare -A GUIDS=""
|
declare -A GUIDS=""
|
||||||
|
@ -135,7 +135,7 @@ find_uuid_for_partition () {
|
||||||
if [[ "$(existing_partitions "${DEVICE}" "${TYPE}")" == "yes" ]]
|
if [[ "$(existing_partitions "${DEVICE}" "${TYPE}")" == "yes" ]]
|
||||||
then
|
then
|
||||||
uuid=$(lsblk -lo PARTTYPE,PARTUUID "${DEVICE}" | grep "${GUIDS[${TYPE}]}" | awk '{ print $2 }')
|
uuid=$(lsblk -lo PARTTYPE,PARTUUID "${DEVICE}" | grep "${GUIDS[${TYPE}]}" | awk '{ print $2 }')
|
||||||
echo "uuid: ${uuid}"
|
echo "${uuid}"
|
||||||
else
|
else
|
||||||
echo "null"
|
echo "null"
|
||||||
fi
|
fi
|
||||||
|
@ -183,8 +183,13 @@ format () {
|
||||||
if [[ ${ask_overwrite} == [Nn] ]]
|
if [[ ${ask_overwrite} == [Nn] ]]
|
||||||
then
|
then
|
||||||
#die 10 "Noch nicht implementiert"
|
#die 10 "Noch nicht implementiert"
|
||||||
temp=$(partitions_analyse "${DEVICE}")
|
ANALYSE_RESULT=$(partitions_analyse "${DEVICE}")
|
||||||
echo "${temp}"
|
if [[ "${ANALYSE_RESULT}" =~ "null"+ ]]
|
||||||
|
then
|
||||||
|
echo "if"
|
||||||
|
else
|
||||||
|
echo "else"
|
||||||
|
fi
|
||||||
#EXISTING_ESP=$(existing_partitions "${DEVICE}" "ESP")
|
#EXISTING_ESP=$(existing_partitions "${DEVICE}" "ESP")
|
||||||
#if [[ "${EXISTING_ESP}" == "no" ]]
|
#if [[ "${EXISTING_ESP}" == "no" ]]
|
||||||
#then
|
#then
|
||||||
|
|
Loading…
Reference in a new issue