Closed dvorak0 closed 2 weeks ago
Hey, thanks for reporting this issue.
The Docker container created by ./run-bakery
is ephemeral, i.e., any changes made with ./run-bakery shell
will not persist when invoking ./run-bakery
again. So, the image you built is likely just a regular Raspberry Pi OS Lite image. Can you please clarify what you mean by “can not boot normally”? Does that mean that the UI does not come up (which would be expected as the image is still based on Raspberry Pi OS Lite) or was there some error?
In general, Raspberry Pi OS Desktop is not supported out-of-the-box right now. That's also why there is no pre-defined core
layer for it. That being said, it is definitely possible to build an image based on Raspberry Pi OS Desktop. You can copy the layer file (raspios-bookworm.arm64.toml
) to your local project (in the layers
directory) and change the URL there. You then need to change the parent
layer of the customized
layer that ships with the template to use your local copy with the changed URL. In addition, some manual tweaking of the core recipes, in particular, everything related to core/rpi-raspios-setup
may be required to actually make it work.
Thanks for you reply.
I know editing files inside shell is not persistent. So I run ./rugpi-bakery
inside the shell, without existing to host. From the size (~6.5GB compared 2.1GB) I think the image is indeed based on Desktop. That reminds me of a problem that will my 16GB card work for that size? I'll try another bigger card later.
The screen shows:
update: I've tried a much larger card, still cannot get it to work.
I know editing files inside shell is not persistent. So I run
./rugpi-bakery
inside the shell, without existing to host.
I see. Yes, that should work.
The error message shows that the SD card could not be partitioned.
You need a larger SD card and you need to set a larger system size. How that is done is explained in the original issue you referred to: https://github.com/silitics/rugpi/issues/15#issuecomment-1927015729 (We should add this to the documentation.) Can you try whether it works when you set a larger system size (like 8 GB)?
I will need some time to investigate this further. There may be an edge case there that is triggered when the system partition does not match the configured size.
I know editing files inside shell is not persistent. So I run
./rugpi-bakery
inside the shell, without existing to host.I see. Yes, that should work.
The error message shows that the SD card could not be partitioned.
You need a larger SD card and you need to set a larger system size. How that is done is explained in the original issue you referred to: #15 (comment) (We should add this to the documentation.) Can you try whether it works when you set a larger system size (like 8 GB)?
I will need some time to investigate this further. There may be an edge case there that is triggered when the system partition does not match the configured size.
Yes, I planned to set a larger system_size. Could you point for me where /etc/rugpi/ctrl.toml
is?
I will use echo 'system_size = "8G" >> /etc/rugpi/ctrl.toml
in 01-install.sh
to try.
It has to be placed in the system being built. You need a custom recipe to do so.
I confirm setting system_size = "6G"
works, even for my 16GB sdcard.
I would still recommend a larger SD card as otherwise the data partition is rather small.
I would still recommend a larger SD card as otherwise the data partition is rather small.
Sure. I've done this to double check the issue is round system-size
. I think this issue can be closed.
I have a following up question: is it allowed to upgrade from a version with smaller system_size
, to a new version with larger system_size
? If it is not allowed, that means I need to reserve a much largersystem_size
for future versions.
You can update as long as the actual update size fits into the system size used for the initial installation. So, yes, you need to reserve as much space as you may need for future versions.
Then I know otherwise the update will fail in the case of that the actual update exceeds the system_size
used in the first time installation. Thanks for your suggestion.
I got the same problem mentioned in https://github.com/silitics/rugpi/issues/15.
I still find the baked image for Raspberry OS Desktop can not boot.
What I have done is:
./run-bakery init rpi-raspios
to get template files./run-bakery shell
, and directly change the url in/usr/share/rugpi/repositories/core/layers/raspios-bookworm.arm64.toml
./run-bakery image tryboot-pi4
Then the image can not boot normally.
Thanks for your help.