Explorar o código

Parse FSTab entries that don't have final digits when mounting migrated OS to the worker.

Daniel Vincze %!s(int64=6) %!d(string=hai) anos
pai
achega
f44399cdbc
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      coriolis/osmorphing/osmount/base.py

+ 1 - 1
coriolis/osmorphing/osmount/base.py

@@ -172,7 +172,7 @@ class BaseLinuxOSMountTools(BaseSSHOSMountTools):
         # fstab entry format:
         # <device> <mountpoint> <filesystem> <options> <dump> <fsck>
         fstab_entry_regex = (
-            "^(\s*([^#\s]+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\d)\s+(\d)\s*)$")
+            "^(\s*([^#\s]+)\s+(\S+)\s+(\S+)\s+(\S+)(\s+(\d)(\s+(\d))?)?\s*)$")
         for line in etc_fstab.splitlines():
             match = re.match(fstab_entry_regex, line)