diff options
author | Sylvain Pineau <sylvain.pineau@canonical.com> | 2018-05-22 13:33:11 +0200 |
---|---|---|
committer | Sylvain Pineau <sylvain.pineau@canonical.com> | 2018-05-22 13:33:11 +0200 |
commit | 7e3bee0b7ff5df44d51eaa2e8acb1cbe7fccd7a2 (patch) | |
tree | 2502da1906ea7a41174ccc8c2ad3638173c5abcd | |
parent | efc8f85948413c7a036c04ffa169ca5fc72f76f1 (diff) |
bin:disk_info: Add support for encrypted drives
-rwxr-xr-x | bin/disk_info | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/disk_info b/bin/disk_info index 5efedbd1..0b454436 100755 --- a/bin/disk_info +++ b/bin/disk_info @@ -53,7 +53,7 @@ def main(): disks = 0 for line in lsblk.splitlines(): m = pattern.match(line) - if not m or m.group('TYPE') != 'disk': + if not m or m.group('TYPE') not in ('disk', 'crypt'): continue # Only consider MMC block devices if one of their mounted partitions is # root (/) |