-
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
osbuild: add support for LVM
to GenBootupdDevicesMounts()
#876
osbuild: add support for LVM
to GenBootupdDevicesMounts()
#876
Conversation
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.
Can we break this down into multiple commits? At least 2, but possibly 3 (if tests are done separately):
- Update of options in
lv2_lv_device.go
(with tests) - Changes to
bootupd_stage.go
for supporting LVM.
It's not really important, but might make it easier to follow the history.
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.
Awesome! Two suggestions inline.
Add support for the new `vg_partnum` parameter for the `org.osbuild.lvm2.lv` devices. This allows to mount the logical volume from a single underlying loop device which is required for `bootc install to-filesystem/bootupd`. See osbuild/osbuild#1867
This is required for `bootc-image-builder` to support LVM. It works by using the new `vg_partition` option to the `org.osbuild.lvm2.lv` device and use it when generating the bootc/bootupd mounts. This way all mounts can come from the same underlying loop device and bootc/bootupd can install the bootloader there. See also osbuild/osbuild#1867
c699a19
to
2f4478b
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.
Ship it!
This is required for
bootc-image-builder
to support LVM. It works by using the newvg_partition
option to theorg.osbuild.lvm2.lv
device and use it when generating the bootc/bootupd mounts.This way all mounts can come from the same underlying loop device and bootc/bootupd can install the bootloader there. See also osbuild/osbuild#1867