-
Notifications
You must be signed in to change notification settings - Fork 6
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
provisioning a lite system created by pi-gen results in a root Busybox shell (similar to #81) #86
Comments
Breaking this into the two major threads:
As mentioned on the other issue, this will happen if you attempt to extract the keypair at any time other than initial provisioning. A future release will make this failure benign.
Thanks for the logs! |
I would be happy to assist in further debugging, if you need any help. I am personally very very interested in sb-provisioner tool as we use it in production. |
Handing over to @roliver-rpi, who I've handed my CM4 secure-boot rig to. |
I'm able to reproduce the abrupt exit at "Starting Capturing device keypair". rpi-sb-provisioner.sh performs
Additionally, the get_variable() function seems to have an issue retrieving the public-key whereas a |
Found this bug while provisioning CM4 with RPi5. On RPi5: full OS installed via official Imager tool. On CM4: simple lite system generated by pi-gen (stages 0 to 2, with 3,4,5 skipped, no modification to stages). Post-generation modification of /bootfs/config.txt: enabled uart and camera. This .img works well when programmed on unsecured module via Imager.
rpi-sb-provisioner installed with dpkg, as recommended. If the RPI_DEVICE_RETRIEVE_KEYPAIR is set, provisioner log ends abruptly at "Starting Capturing device keypair to /home/taras/Documents/", but it creates only an empty .der file. Monitor.sh doesn't show the provisioned device serial neither in finished, nor in failed. If the RPI_DEVICE_RETRIEVE_KEYPAIR is not set, monitor shows successfully finished provisioning.
CM4 after provisioning boots into Bysybox. I've captured boot log via UART.
With the same .img, the result is the same every time. I have one older .img, also created with pi-gen with the same stages, and it can be provisioned successfully every time (but the keypair will not be stored), but no new pi-gen generated .img succeeds. Also I've tried with an .img obtained via
dd
from another CM4, and the result is the same: Busybox shell. I'm attaching these logs.provisioner.log
system.log
uart.log
The text was updated successfully, but these errors were encountered: