Skip to content

Make image_build.py more portable#1019

Open
nmattia wants to merge 1 commit intoprusa3d:masterfrom
nmattia:nm-image-builder
Open

Make image_build.py more portable#1019
nmattia wants to merge 1 commit intoprusa3d:masterfrom
nmattia:nm-image-builder

Conversation

@nmattia
Copy link
Copy Markdown
Contributor

@nmattia nmattia commented Mar 1, 2025

This fixes issues that might occur in image_builder.py (the RPi image builder). In particular:

  • Set the rev for pishrink.sh to ensure a known working version is used
  • Drops the (non-existent?) -p parameter of pishrink.sh and disable autoupdate checks (-n)
  • Use curl instead of wget (more widespread)
  • Add attempt logs for run_emulator as well as a check to ensure the qemu process hasn't died
  • Change some qemu args to ensure the script can be run on headless systems
  • Add -y to e2fsck to default all answers to "yes"

@nmattia
Copy link
Copy Markdown
Contributor Author

nmattia commented Mar 25, 2025

@TojikCZ thoughts on this?

@TojikCZ
Copy link
Copy Markdown
Contributor

TojikCZ commented Mar 25, 2025

Hey, thank you for improving the script. Sorry we don't have any time for PrusaLink. I hope we'll get to transition the repo under @3d-gussner supervision, but there's no clear timeline for that.

@nmattia
Copy link
Copy Markdown
Contributor Author

nmattia commented Aug 18, 2025

Hey @TojikCZ @3d-gussner, I was wondering if you had news re. the future of PrusaLink? Will Prusa stop maintaining it?

Not committing to anything, but @Rudd-O and I both rely on it and would be happy to help

This fixes issues that might occur in `image_builder.py` (the RPi image
builder).

In particular:

* Set the `rev` for `pishrink.sh` to ensure a known working version is used
* Drops the (non-existent?) `-p` parameter of `pishrink.sh` and disable
  autoupdate checks (`-n`)
* Use `curl` instead of `wget` (more widespread)
* Add attempt logs for `run_emulator` as well as a check to ensure the `qemu`
  process hasn't died
* Change some `qemu` args to ensure the script can be run on headless systems
* Add `-y` to `e2fsck` to default all answers to "yes"
@ondratu ondratu force-pushed the nm-image-builder branch from 08f32b0 to aafb2b9 Compare March 6, 2026 07:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants