Ein Script zum Testen von funktionalitäten hinzugefügt.
This commit is contained in:
parent
13f50f28b1
commit
2b65cdd2dd
1 changed files with 20 additions and 0 deletions
20
test.uefi
Normal file
20
test.uefi
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# VARIABLEN:
|
||||||
|
DRIVE="/dev/vda"
|
||||||
|
ESP="512M"
|
||||||
|
USR="10G"
|
||||||
|
ROOT_LABEL="root"
|
||||||
|
USR_LABEL="usr"
|
||||||
|
ESP_LABEL="EFI"
|
||||||
|
|
||||||
|
#---------------------------#
|
||||||
|
|
||||||
|
CHECK_EXISTENCE_OUTPUT=$(lsblk -o NAME | grep -c "^${DRIVE//\/dev\/}")
|
||||||
|
|
||||||
|
if [[ ${CHECK_EXISTENCE_OUTPUT} -lt 1 ]]; then
|
||||||
|
echo "Platte existiert nicht, Abbruch!"
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Platte existiert , Weitermachen."
|
||||||
|
fi
|
Loading…
Reference in a new issue