diff --git a/wlauto/common/linux/device.py b/wlauto/common/linux/device.py index 3192d58f..4b020877 100644 --- a/wlauto/common/linux/device.py +++ b/wlauto/common/linux/device.py @@ -301,6 +301,9 @@ class BaseLinuxDevice(Device): # pylint: disable=abstract-method output = self.execute('mount') fstab = [] for line in output.split('\n'): + line = line.strip() + if not line: + continue match = FSTAB_ENTRY_REGEX.search(line) if match: fstab.append(FstabEntry(match.group(1), match.group(2),