-
Epic
-
Resolution: Done
-
Major
-
None
-
Support arbitrary custom mountpoints
-
13
-
False
-
None
-
False
-
Testable
-
To Do
-
RHELBU-2358 - Image Builder support for custom filesystem mount points
-
0% To Do, 0% In Progress, 100% Done
-
-
Currently, Image Builder allows to add extra mountpoints only to a pre-defined set of locations. However, customers demand more location. Let's make them happy.
Goal:
- Allow users to specify arbitrary extra mountpoints.
- Implement a denylist for mountpoints that simply cannot be backed by a physical partition:
- /bin, /sbin, /lib, /lib64, /proc, /sys, /dev, /lost+found, /sysroot (ostree only?), /run, /boot/efi
- Consult https://www.freedesktop.org/wiki/Software/systemd/APIFileSystems/ for more ideas
Acceptance Criteria:
- Image Builder has loosened rules for custom mountpoints.
- This is available both in the hosted service and on-prem (including UIs).
Open questions:
- systemd changes its support for separate /usr. We need to check how it affects IB. See https://github.com/systemd/systemd/blob/82b7bf8c1c8c6ded6f56b43998c803843a3b944b/NEWS#L7
- [thozza] This does not have effect on IB, since our policy does not support custom mountpoints under /usr and we also do not support custom mountpoints for paths which are merged into /usr. Having /usr on a separate partition is supported, since systemd fstab generator handles it in initram and mounts it before switching the root.
Final mountpoints policy
As defined in https://github.com/osbuild/images/blob/main/internal/pathpolicy/policies.go
Mountpoint path | Policy |
---|---|
/ |
|
/usr |
|
/etc |
|
/sys |
|
/proc |
|
/dev |
|
/run |
|
/bin |
|
/sbin |
|
/lib |
|
/lib64 |
|
/lost+found |
|
/boot/efi |
|
/sysroot |
|
/var/run |
|
/var/lock |
|
- relates to
-
COMPOSER-2053 Reflect the new mountpoints policy in cockpit-composer
- Closed
-
HMS-3395 Reflect the new mountpoints policy in image-builder-frontend
- Closed
- links to
(3 links to)