-
Notifications
You must be signed in to change notification settings - Fork 96
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
🌱 Add LVM activation support for OEM and recovery partitions for ARM images #997
Comments
@venkatnsrinivasan Is there any way I can easily test this? Do I need to generate raw images for rpi or something? Or is this possible in a normal install with an ISO? |
@Itxaka I only made changes to creating the raw rpi images script so for now you need to generate raw images using the build-arm-image.sh in osbuilder. I used UTM on mac /rpi to test. Another option could be to do manual install using an iso for amd64 and before rebooting convert the COS_OEM and COS_RECOVERY to LVM. I did that initially. |
we have some bits describing how to test LVM on amd64 here: https://github.com/kairos-io/infra-as-code |
I been testing this with the following cloud-config extra steps:
|
incredibly enough, this works out of the box due to dracut-initqueue mounting the lvm module and activating it by itself. But in the case of COS_OEM, this does not trigger properly, probably a race condition between immucore trying to mount it and dracut enabling the module
|
Seems like indeed, immucore should run |
Looks like the |
I saw this error when trying to boot the Ubuntu RPi |
yep! Looks like the function is being run at the start of immucore. That works nice for existing fs, but for anything that gets mounted or appears later, it doesnt work. Just added a just-in-time check for fs when trying to mount to fix this, in case things change between start and the mount command which should fix this. |
to test with OEM partition:
|
Im wondering if upgrade will even work. As long as we are just using the labels it should but...meh it migth not. |
seems liek it does as we dont touch the oem partition :D |
Missing package updates for immucore in kairos :D |
blocked by #1330 |
Lvm support is in |
Is your feature request related to a problem? Please describe.
Currently ARM images have no OEM partition. As part of this pull request , support for LVM based partitions was add to the arm image builder tools - kairos-io/osbuilder#25 .
Presently LVM partitions for OEM and recovery are not activated at boot time to take effect. Need some enhancements to get these picked up.
Describe the solution you'd like
Activate LVM partitions on boot to mount OEM partitions. Also boot from LVM into recovery mode.
see #622
The text was updated successfully, but these errors were encountered: