This commit is contained in:
erpalma
2018-11-07 11:24:17 +01:00
parent 671e252198
commit 0189170a40

View File

@@ -5,6 +5,7 @@ import argparse
import configparser
import dbus
import glob
import gzip
import os
import re
import struct
@@ -480,7 +481,7 @@ def check_kernel():
kernel_config = f.read()
except IOError:
try:
with open(os.path.join('/proc', 'config.gz')) as f:
with gzip.open(os.path.join('/proc', 'config.gz')) as f:
kernel_config = f.read()
except IOError:
pass