list_block_devices
This commit is contained in:
parent
213f6ae1f1
commit
014ac219ac
1 changed files with 7 additions and 1 deletions
|
@ -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}"
|
||||||
|
|
Loading…
Reference in a new issue