-
Notifications
You must be signed in to change notification settings - Fork 76
Support LUKS devices when using guestfish to inject ignition #1118
Conversation
ac61bd9
to
66928bc
Compare
Could i get some reviews for this please ? and a lgtm hopefully ? :) |
Would be good to link to the analogous coreos-assembler change in the commit message: coreos/coreos-assembler#826. One thing here, do we need to bump memory here as well? https://github.com/coreos/coreos-assembler/pull/826/files#diff-b67c90828c71ffa6aaa6454fa26aefa4R9-R15 |
Will add the reference to the commit. I am not sure about the memory increase. I was able to run the kola tests without that change and seemed to work fine. @cgwalters is the memory increase for guestfs needed for the kola tests? |
Add support for recognizing LUKS filesystem when setting up ignition. While not necessary for x86 because it uses fw_cfg, ppc64 and s390x use guestfish and need this change for kola tests to run. Introduced because of these changes: coreos/coreos-assembler#826
66928bc
to
5bbe94b
Compare
This seems OK to me, but I think it'd be simpler to just stop mounting the rootfs - we don't need it to inject Ignition into |
Second this. So we can just remove the rootfs mounting after all - |
Yes. we could mount /boot using the guestfish debug shell, but one roadblock I hit was a way to upload a file to the partition in the debug shell. I am not a guestfish expert by any means so if someone knows of a way to do this that would be great. |
Using guestfish's mount command with boot partition (/dev/sda1) being as
Thinking on how to do |
i think this is much better. It is misleading in the sense that we are not putting it in "/", but it is a cleaner solution. i will close this PR and open a new one. thanks @tuan-hoang1 ! |
With the changes made recently: coreos/coreos-assembler#826, we need to add support for detecting LUKS root partitions which is really unnecessary as we are just injecting ignition in the boot partition. Based on suggestions by @cgwalters and @tuan-hoang1 in coreos#1118
opened #1124. |
Add support for recognizing LUKS filesystem when setting up ignition.
While not necessary for x86 because it uses fw_cfg, ppc64 and s390x use guestfish
and need this change for kola tests to run.