-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support arbitrary custom mountpoints #216
Conversation
a44f926
to
319aded
Compare
Add a simple unit test for the current definition of `MountpointPolicies` to capture various scenarios of what is currently allowed and what is not. This will be helpful in the next steps when the policy gets relaxed and reworked. Delete distro unit-tests which were responsible for checking that some specific mountpoints are not allowed by the mountpoint policy. The newly added policy unit test tests the same thing, but on a single place. Signed-off-by: Tomáš Hozza <[email protected]>
Any mountpoints under `/usr` are not supported by systemd fstab generator in initram before the switch-root, so we don't allow them. Until now, a user could create a custom mountpoint in e.g. `/usr/lib`, which would make the system unbootable. Signed-off-by: Tomáš Hozza <[email protected]>
Before relaxing the mountpoints policy, let's first disallow paths which can't or should not be backed by a separate partition. This has no effect on the current mountpoint policy, because all of these paths are already disallowed. Signed-off-by: Tomáš Hozza <[email protected]>
Any path, which is not explicitly disallowed, can now be specified as a separate mountpoint. Signed-off-by: Tomáš Hozza <[email protected]>
319aded
to
8425d31
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work and I really like the merged testing. Is there more work to be done here (draft)?
Not that I know of. I was just not sure if I didn't forget to fix some tests. 😇 But in general, this should be sufficient for this repo. |
Related to https://issues.redhat.com/browse/COMPOSER-2030