Skip to content

Commit

Permalink
fixup! fixup! fixup! fixup! fixup! fixup! fixup! Add a preliminary ch…
Browse files Browse the repository at this point in the history
…ecker to ensure the mount points in /etc/fstab are in the correct order
  • Loading branch information
Mikhail Sandakov committed Nov 26, 2024
1 parent 1882b95 commit dcb253a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pleskdistup/common/src/mounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ def get_fstab_configuration_misorderings(configpath: str) -> typing.List[typing.
continue

parent_dir: str = mount_point
root_found: bool = True
root_found: bool = False

while root_found:
while not root_found:
parent_dir = os.path.dirname(parent_dir)
if parent_dir in mount_points_order and mount_points_order[parent_dir] > mount_points_order[mount_point]:
misorderings.append((parent_dir, mount_point))
if parent_dir == "/":
root_found = False
root_found = True

return misorderings

0 comments on commit dcb253a

Please sign in to comment.