From 90d0b9ff63d7ec6fd0147dfb0957356da0c383d6 Mon Sep 17 00:00:00 2001
From: Glandos <bugs-0xacab@antipoul.fr>
Date: Sat, 24 Mar 2018 06:23:26 -0700
Subject: [PATCH] Exclude zram devices, they don't have a partition table

---
 handlers/sys.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/handlers/sys.in b/handlers/sys.in
index 35b9b6c..ffdb0e2 100644
--- a/handlers/sys.in
+++ b/handlers/sys.in
@@ -608,7 +608,7 @@ fi
 
 if [ "$partitions" == "yes" ]; then
    if [ "$dosfdisk" == "yes" ]; then
-      devices=`LC_ALL=C $LSBLK --output NAME,TYPE --list --paths 2>/dev/null | grep "disk$" | @AWK@ '{print $1}'`
+      devices=`LC_ALL=C $LSBLK --output NAME,TYPE --list --paths 2>/dev/null | grep "disk$" | grep -v '^/dev/zram' | @AWK@ '{print $1}'`
       if [ "$devices" == "" ]; then
          warning "No harddisks found"
       fi
-- 
GitLab