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
1diff --git a/checkbox_support/parsers/udevadm.py b/checkbox_support/parsers/udevadm.py
2index 2c6181a..518894b 100644
3--- a/checkbox_support/parsers/udevadm.py
4+++ b/checkbox_support/parsers/udevadm.py
5@@ -117,7 +117,7 @@ def find_pkname_is_root_mountpoint(devname, lsblk=None):
6 ):
7 return True
8 if (
9- re.search('MOUNTPOINT=.*/writable', line) and
10+ re.search('MOUNTPOINT=.*/(writable|hostfs)', line) and
11 line.startswith('KNAME="{}'.format(devname))
12 ):
13 return True

Subscribers

People subscribed via source and target branches