ComplianceAsCode / ComplianceAsCode/content
Allow and use UUIDs for mount options and point remedations
- Dominant language
- Shell
- Stars
- 2.8k
- Forks
- 828
- Avg merge
- 3d 8m
- Merged PRs (30d)
- 80
Description
#### Share the context
RHEL (and other distros) by default use UUIDs to identify partitions and disks `/etc/fstab` this allows the system to be resilient and able to adapt to change if the devices are plugged into the system in a different order than when the system was installed.
#### Description of problem:
When our content adds mount options like `nodev` we replace the UUID with the device id of something like `/dev/sda`. This makes the system less resilient to change.
#### Proposed change:
Our remediation use `UUID="..."` vs `/dev/sdX` for remediation of mount points and mount options.
We can use files `/dev/disk/by-uuid/` and similar to better help us figure what UUIDs to use in our remedations.
Contributor guide
Assessment
This issue has not been assessed yet.