Skip to content

Remounting breaks persistent device ordering #162

@samicemalone

Description

@samicemalone

**Have you checked ReadtheDocs?: Yes

Describe the Issue
/etc/fstab mount device sources are not preserved which can cause failure to boot as the device ordering isn't gauranteed (e.g. /dev/sdf1 becomes /dev/sde1 on boot).

Expected Behavior
Ubuntu uses /dev/disk/by-uuid/... symlinks in /etc/fstab. Remounting the partitions should keep this format to prevent device reordering

Actual Behavior
/etc/fstab changes to /dev/sdX1 format from the prelim variables that parse it from mount.

Control(s) Affected
What controls are being affected by the issue
1.1.2.x

Environment (please complete the following information):

  • branch being used: [devel]
  • Ansible Version: [2.16.3]
  • Host Python Version: [Python 3.12.3]
  • Ansible Server Python Version: [Python 3.12.3]
  • Additional Details:

Additional Notes
Other source formats are also valid e.g. UUID=..., PARTUUID=, LABEL=.

Possible Solution
Use findmnt instead of parsing mount to include the UUID

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions