diff options
| author | Robert Günzler <r@gnzler.io> | 2022-08-17 15:39:36 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2022-08-17 15:39:36 +0200 |
| commit | 0005a90a76954003d975ee9ff82b7e10c176f91d (patch) | |
| tree | 8dff96a578b3a6501fd5be40dd574b61f8134c05 /bin/mnts | |
| parent | cd326de7643bbd8abf67de98b8c15cc5f4291cb5 (diff) | |
bin/mnts: skip loop* devices
Diffstat (limited to '')
| -rwxr-xr-x | bin/mnts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mnts b/bin/mnts index a7ad5c0..f8bfc4c 100755 --- a/bin/mnts +++ b/bin/mnts @@ -49,7 +49,7 @@ handle() { } lsblk -flJ | - jq -r '.. | select(.uuid?!="" and .name?) | select((.name | test("hibiki|nvme") | not) and .fstype?) | [ .name, .label, .mountpoints[0] // "" ] | @tsv' | + jq -r '.. | select(.uuid?!="" and .name?) | select((.name | test("hibiki|nvme|loop[0-9]+") | not) and .fstype?) | [ .name, .label, .mountpoints[0] // "" ] | @tsv' | awk -F'\t' '{printf "/dev/%-10s\t%-15s\t%s\n", $1, $2, $3;}' | menu --list=8 | handle |