kairos: rpi v2.0.2 custom image boots in emergency shell, immucore can't find cos_state
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:
FROM quay.io/kairos/kairos-opensuse-leap-arm-rpi:v2.0.2-k3sv1.26.3-k3s1
WORKDIR /usr/sbin
RUN curl -L https://github.com/Ognian/sdmon/releases/download/latest/sdmon-arm64.tar.gz | tar zxf -
custom build .sh file
mkdir -p build
docker build -t kairos-rpi-ogi .
docker pull quay.io/kairos/osbuilder-tools:latest
docker run -v $PWD:/HERE -v /var/run/docker.sock:/var/run/docker.sock --privileged -i --rm --entrypoint=/build-arm-image.sh quay.io/kairos/osbuilder-tools:latest \
--model rpi64 \
--state-partition-size 6200 \
--recovery-partition-size 4200 \
--size 15200 \
--images-size 2000 \
--local \
--config /HERE/cloud-config.yaml \
--efi-dir /HERE/boot \
--docker-image kairos-rpi-ogi /HERE/build/out.img
Expected behavior
Logs
Additional context
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 24 (24 by maintainers)
Commits related to this issue
- temp disable arm upgrade plans — committed to AnthonyEnr1quez/k3s-gitops by AnthonyEnr1quez a year ago
@Itxaka pulled the newest manually, but the result is the same… version is also v0.0.1 hope the previous with debug info helps… 1.txt
@Itxaka here it is new.txt In the meanwhile I’ll try to manually pull the latest image before building…
This will be fixed byt the next version of immucore with this patch: https://github.com/kairos-io/immucore/pull/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.
no sd card just an USB3 HD
@Itxaka unfortunately it still fails 😦 rdsosreport.txt In my setup the rpi is booting from an USB HD; with previous versions this worked flawless …