Merge ~kissiel/checkbox-support:hostfs-detection-fix into checkbox-support:master

Proposed by Maciej Kisielewski
Status: Merged
Approved by: Sylvain Pineau
Approved revision: 40f4460c2b7296cc8611eafc4d2af4ed1f3ee4a2
Merged at revision: 44889c933c9d59f5f28138ab51b75ed8ca93f37a
Proposed branch: ~kissiel/checkbox-support:hostfs-detection-fix
Merge into: checkbox-support:master
Diff against target: 13 lines (+1/-1)
1 file modified
checkbox_support/parsers/udevadm.py (+1/-1)
Reviewer Review Type Date Requested Status
Sylvain Pineau (community) Approve
Review via email: mp+358755@code.launchpad.net

Description of the change

add hostfs as a proper root partitions in udevadm parser

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

+1000

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/checkbox_support/parsers/udevadm.py b/checkbox_support/parsers/udevadm.py
index 2c6181a..518894b 100644
--- a/checkbox_support/parsers/udevadm.py
+++ b/checkbox_support/parsers/udevadm.py
@@ -117,7 +117,7 @@ def find_pkname_is_root_mountpoint(devname, lsblk=None):
117 ):117 ):
118 return True118 return True
119 if (119 if (
120 re.search('MOUNTPOINT=.*/writable', line) and120 re.search('MOUNTPOINT=.*/(writable|hostfs)', line) and
121 line.startswith('KNAME="{}'.format(devname))121 line.startswith('KNAME="{}'.format(devname))
122 ):122 ):
123 return True123 return True

Subscribers

People subscribed via source and target branches