|
|
@ -556,6 +556,7 @@ class LinuxHardware(Hardware):
|
|
|
|
fields = [self._replace_octal_escapes(field) for field in fields]
|
|
|
|
fields = [self._replace_octal_escapes(field) for field in fields]
|
|
|
|
|
|
|
|
|
|
|
|
device, mount, fstype, options = fields[0], fields[1], fields[2], fields[3]
|
|
|
|
device, mount, fstype, options = fields[0], fields[1], fields[2], fields[3]
|
|
|
|
|
|
|
|
dump, passno = int(fields[4]), int(fields[5])
|
|
|
|
|
|
|
|
|
|
|
|
if not device.startswith(('/', '\\')) and ':/' not in device or fstype == 'none':
|
|
|
|
if not device.startswith(('/', '\\')) and ':/' not in device or fstype == 'none':
|
|
|
|
continue
|
|
|
|
continue
|
|
|
@ -563,7 +564,9 @@ class LinuxHardware(Hardware):
|
|
|
|
mount_info = {'mount': mount,
|
|
|
|
mount_info = {'mount': mount,
|
|
|
|
'device': device,
|
|
|
|
'device': device,
|
|
|
|
'fstype': fstype,
|
|
|
|
'fstype': fstype,
|
|
|
|
'options': options}
|
|
|
|
'options': options,
|
|
|
|
|
|
|
|
'dump': dump,
|
|
|
|
|
|
|
|
'passno': passno}
|
|
|
|
|
|
|
|
|
|
|
|
if mount in bind_mounts:
|
|
|
|
if mount in bind_mounts:
|
|
|
|
# only add if not already there, we might have a plain /etc/mtab
|
|
|
|
# only add if not already there, we might have a plain /etc/mtab
|
|
|
|