Open Meisterschueler opened 1 month ago
Thanks for reporting this. Was able to reproduce, debug logging reported:
##[debug]Not all required directories in pi-gen dir. Required: stage0, stage1, stage2, stage3, stage4, stage5 but found .git, export-image, export-noobs, scripts, stage0, stage1, stage2, stage3, stage4
The configured ref of pi-gen
at https://github.com/RPi-Distro/pi-gen/tree/2023-05-03-raspios-buster does indeed not contain a stage5
. Not entirely sure about the ramifications, but I think we could relax the verification check here to always verify stages 0 to 4 instead. This was anyhow only implemented to prevent people from running on anything that does not look like an actual pi-gen
clone.
If you agree, we could move forward with this fix. A PR would be welcome and should be easy enough by just adding an additional filter step to strip stage5
at https://github.com/usimd/pi-gen-action/blob/master/src/pi-gen.ts#L126-L128.
Thanks for the analysis. Would it be possible to add the filter only when the release is set to Bullseye? I'm not in your code and I'm not in TypeScript either ...
Describe the bug I cant run this action for a buster image (no problems at all with bookworm and bullseye)
To Reproduce Steps to reproduce the behavior:
Expected behavior With this configuration I expect a "buster lite" image. With same configuration for bookworm or bullseye (different attributes: release, pi-gen-version) I see no problems.
Logs
Additional context Add any other context about the problem here.