-
Notifications
You must be signed in to change notification settings - Fork 59
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
Cannot boot from /dev/vda, install the os from the running system to /dev/vdb and reboot. #1640
Comments
FYI @dustymabe @jlebon |
This is how the disks looks like after running
|
This check is implemented in coreos-unique-boot.service and runs on first boot (Ignition boot). Some context on this check can be found in #976 and coreos/coreos-installer#658 |
A little hacky (and completely untested) but you might be able to just make the installed system ignore the vdb disk completely with something like |
Thank you @dustymabe. I will try this one out. |
That would take care of the kernel + userspace side, but even GRUB won't know which one is the right one when booting. The more comprehensive fix for this is to bind the bootfs at install time: coreos/coreos-installer#798. |
but won't our |
One more hacky thing you could do is before rebooting, relabel the bootfs to e.g. (Would be nice if we could do that for the rootfs too. That would drop the requirement on the karg entirely. But XFS doesn't support changing label online, which makes this harder.) |
Thanks @jlebon. This sounds hacky indeed. I can try that but that would definitely require changes to Assisted. |
FWIW, |
@ybettan At least they'd only be temporary until we get custom live ISOs. I think we could and should support this too, but it'd still be super confusing to have two filesystems labeled In that sense, the |
Booting from a disk image is mainly a temporary solution until we have live ISOs. Are their plans for OCP to start using |
@jlebon Didn't we say that it won't work as GRUB won't know which disk to boot? |
You'd need both. Relabeling |
This worked perfectly for me. I was able to copy over my data and migrate to the new disk. |
Describe the enhancement
It is not possible to boot from one disk and run
coreos-installer install ...
to a second disk and reboot.I am adding some OCP/RHCOS information to this issue because it is hard to describe the usecase without it. Hope it is fine.
In order for customers/partners to be able to install day0 kernel modules in OCP, those drivers needs to be present at the node's boot time.
In assisted-installer we use a discovery image which is usually just a live RHCOS + a node-discovery agent sending node information to the service prior to the cluster installation.
In order to allow day0 kernel module, those drivers needs to be present in the discovery image (which can be a live ISO or a disk image) since the discovery phase require connection to the service, therefore, network drivers.
In case of using a disk-image, a user/partner will need to build a custom disk-image using
image-builder
/osbuild
, boot from it, connect to the service and then install RHCOS to the second disk so after the reboot nodes can reach machine-config-service on the bootstrap node and finish the installation.The issue with this approach is that looks like some code was added to prevent the node from rebooting in such case because of "another filesystem labeled
boot
".Adding link describing the full process: https://github.com/ybettan/image-composer/blob/main/CUSTOMIZE_RHCOS.md#prerequisites-when-installing-from-a-disk-image
System details
No response
Additional information
Note: this is a temporary approach until we are able to have custom live ISOs.
The text was updated successfully, but these errors were encountered: