-
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
Factory reset is not working as described on raspberrypi #622
Comments
Thanks @c0ffee for filing an issue! That's a good point - by default ARM images don't come with an OEM partition so docs aren't correct in such case. We should move to LVM, or either document how to set an OEM partition externally. |
The reset option is missing in the grub menu too What would be then the way to do a reset on Wich a device? In general I think LVM would be the best approach to have the same lock and feel The limitation is probably the partition table at the moment right? |
Once a partition labeled "COS_OEM" is found it is automatically loaded, however that may need further tweaking. Indeed the best approach is to move over something more flexible, like LVM.
Correct |
Waiting for this: #1271 |
#1271 has been merged. I tested this and it is possible to create file |
I think that has to do to the fact that there is no installation phase while flashing, so we miss the default grub configuration:
|
Isn't this a problem too?
|
Fixes kairos-io/kairos#622 Signed-off-by: Dimitris Karakasilis <[email protected]>
Regarding the missing grubenv file (see the description of the issue at the top), I think there is some detection happening here: https://github.com/kairos-io/packages/blob/1cfec31b9ca1097e1fbd96d9bac990c42d04e678/packages/static/grub-config/files/grub.cfg#L5 so the |
Actually it doesn't fail with the error above. After a while it continues. The problem seems to be that it can't even boot into recovery (not just "reset"). I flashed this image from quay.io: |
looks like a regression in using LVM as partitioning. I can boot into recovery just fine on Nvidia AGX Orin |
Maybe we need an |
|
This should fix booting to recovery: #1471 (comment) I'm not sure if |
Kairos version:
NAME="kairos-opensuse-arm-rpi"
VERSION="v1.4.0-k3sv1.24.9+k3s1"
ID="kairos"
ID_LIKE="kairos-opensuse-arm-rpi"
VERSION_ID="v1.4.0-k3sv1.24.9+k3s1"
PRETTY_NAME="kairos-opensuse-arm-rpi v1.4.0-k3sv1.24.9+k3s1"
ANSI_COLOR="0;32"
BUG_REPORT_URL="https://github.com/kairos-io/kairos/issues/new/choose"
HOME_URL="https://github.com/kairos-io/provider-kairos"
IMAGE_REPO="quay.io/kairos/kairos-opensuse-arm-rpi"
IMAGE_LABEL="latest"
GITHUB_REPO="kairos-io/provider-kairos"
VARIANT="core"
FLAVOR="opensuse"
CPU architecture, OS, and Version:
Linux k8s-rpi3-1 5.14.21-150400.24.38-default #1 SMP PREEMPT_DYNAMIC Fri Dec 9 09:29:22 UTC 2022 (e9c5676) aarch64 aarch64 aarch64 GNU/Linux
Describe the bug
Factory reset from userspace is not working as described in the documentation. /oem is actually RO and is missing the grubenv file. Actually even the grub entry is missing at all too.
To Reproduce
grub2-editenv /oem/grubenv set next_entry=statereset
Expected behavior
Device does a factory reset :)
Logs
Additional context
The text was updated successfully, but these errors were encountered: