list_block_devices

This commit is contained in:
Marc Beninca 2024-11-20 10:11:02 +01:00
parent 510ca5a5b3
commit 86db452e72
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,4 +1,4 @@
list_block_devices() {
sh_list_block_devices() {
lsblk \
--noempty \
--output "NAME,SIZE,TYPE,FSTYPE,LABEL,MOUNTPOINTS"
@ -30,7 +30,7 @@ sh_read_secret() {
sh_warn_wipe() {
local tmp
list_block_devices
sh_list_block_devices
printf "%s" "WIPE ${*} /?\\ OR CANCEL /!\\"
read -r tmp
sh_log_trace "${tmp}"