~cypressyew/checkbox/cbt-typo-readme

« back to all changes in this revision

Viewing changes to checkbox-support/checkbox_support/parsers/udevadm.py

"automatic merge of lp:~sylvain-pineau/checkbox/fix-udev-parser-stringio/ by tarmac [r=sylvain-pineau][bug=][author=sylvain-pineau]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
def find_pkname_is_root_mountpoint(devname, lsblk=None):
98
98
    """Check for partition mounted as root for a DISK device."""
99
99
    if lsblk:
 
100
        try:
 
101
            lsblk = lsblk.read()
 
102
        except AttributeError:
 
103
            pass
100
104
        for line in lsblk.splitlines():
101
105
            if (
102
106
                line.endswith('MOUNTPOINT="/"') and