list_block_devices

This commit is contained in:
Marc Beninca 2024-11-16 13:25:02 +01:00
parent 213f6ae1f1
commit 014ac219ac
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,3 +1,9 @@
list_block_devices() {
lsblk \
--noempty \
--output "NAME,SIZE,TYPE,FSTYPE,LABEL,MOUNTPOINTS"
}
not() { not() {
case "${1}" in case "${1}" in
"false") echo "true" ;; "false") echo "true" ;;
@ -24,7 +30,7 @@ read_secret() {
warn_wipe() { warn_wipe() {
local tmp local tmp
lsblk --noempty list_block_devices
printf "%s" "WIPE ${*} /?\\ OR CANCEL /!\\" printf "%s" "WIPE ${*} /?\\ OR CANCEL /!\\"
read -r tmp read -r tmp
log_trace "${tmp}" log_trace "${tmp}"