-
Notifications
You must be signed in to change notification settings - Fork 100
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
rpi v2.0.2 custom image boots in emergency shell, immucore can't find cos_state #1342
Comments
Looks like immucore is not able to infer the FS of the cos-state partition.... immucore v0.0.18 has a patch to avoid this |
Fix released as part of v2.0.3! Images will be ready shortly: https://github.com/kairos-io/provider-kairos/releases/tag/v2.0.3 @Ognian let us know if this still fails (it should not!) |
@Itxaka unfortunately it still fails :-( |
umm, weird, empty label for cos_state and empty fs type??
|
interesting. How are you setting up the usb boot? Pivoting from sd to usb or just having an usb disk with kairos installed? I might be able to reproduce it if I know how its setup @Ognian |
no sd card just an USB3 HD |
Built an image with the steps given, it boots on sdcard but fails on usb-hdd Need to dust my serial to usb to track this :D |
Cant get state label for some reason:
|
looks like a race condition becuase the usb takes a bit to come up:
|
Gonna try to introduce some safe checks arounds the cos_state partition and a retry function so it tries to get it for a bit. |
This will be fixed byt the next version of immucore with this patch: kairos-io/immucore#115 Tested myself and indeed its due to the usb appearing later so immucore could not find the state label. That patch introduces a retry in order to get label or panic if it fails to. |
@Itxaka thanks for keeping us up to date. |
@jimmykarily is there a way to install the newest immucore in my custom Dockerfile (see my first entry) so that I can test this before v2.1.0 ( I don't know how long v2.1.0 would take but it looks like there are still a lot of open tasks...) ... |
@Ognian we bumped immucore on latest kairos@master. You just need to build a kairos core image from latest master. |
@jimmykarily cool, I started my build now, lets see... Is there also a |
@Itxaka |
Same error, cos-state label nor fs could be read:
Although Im a bit worried due to not getting the proper immucore version:
So I annot pinpoint the error exactly but Im not sure that is the proper immucore version with the fix. The new one has a panic if we cant get the label: https://github.com/kairos-io/immucore/pull/115/files#diff-310bfebac0279274ed530947884107087ff0aea1845732db964697735a848212R185 and in this case it looks like it cant get the label. So I would have expected it to panic and stop booting. @Ognian can you provide the same logs with |
Definitively, that version does not contain the fix for the usb-hdd stuff as it only tries to get it once and then continues:
instead you should see something like this:
This last log comes from the base image at |
Ummm, maybe 2.0.3 did not get the bumped repositories for the newest immucore, let me have a look, because with the latest image from |
omg, Im an idiot. fix was released on v0.0.19. No wonder its not fixed, kairos v2.0.3 contains immucore v0.0.18 which I thougth was the one to fix this. Sorry about that @Ognian I totally screwed from the start thinking it was already in for v2.0.3 😭 Even more stupider is that myself wrote this card into 2.1.0 saying that it was fixed by v0.0.19 and that would be released as part of kairos 2.1.0 🤦 Anyway, then the only thing you can do for now is wait for 2.1.0 to be released or build the image yourself from the provider-kairos repo with something like:
That should build a opensuse-leap based image with k3s v1.26.3-k3s for the rpi based on the latest images published (master). |
@Itxaka tested with quay.io/kairos/core-opensuse-leap-arm-rpi:v2.1.0 and at least boots now... I'm having now the problem that the config is not applied (I don't know why yet..) and of course Im waiting on the "standard" v2.1.0 version including k3s... |
Kairos version:
kairos-opensuse-leap-arm-rpi:v2.0.2-k3sv1.26.3-k3s1
CPU architecture, OS, and Version:
Describe the bug
immucore can't find cos_state, see attached log
To Reproduce
Dockerfile:
custom build .sh file
Expected behavior
Logs
rdsosreport.txt
Additional context
The text was updated successfully, but these errors were encountered: