Skip to content
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

Update BusyBox base image to v1.34 #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

carlosperate
Copy link

@carlosperate carlosperate commented Oct 15, 2021

This version of BusyBox contains a fix to an issue uncompressing OS image zip files larger than 4GB: https://busybox.net

unzip: fix for .zip archives with >4GB file

In my workflow I expand the OS image and when the file ends up bigger than 4GB it shows this zip error message and waits for user input:

$ docker run -it -v my_image.zip:/sdcard/filesystem.zip lukechilds/dockerpi:vm
No filesystem detected at /sdcard/filesystem.img!
Extracting fresh filesystem...
Archive:  /filesystem.zip
  inflating: 2021-05-07-raspios-buster-armhf-lite-autologin-ssh-expanded.img
unzip: bad length
replace 2021-05-07-raspios-buster-armhf-lite-autologin-ssh-expanded.img? [y]es, [n]o, [A]ll, [N]one, [r]ename:

After selecting and option it does work correctly, but waiting for user input is a problem for running these containers in CI.

Using the latest BusyBox fixes this and it uncompresses the zip file without these problems.

This version contains a fix to an issue uncompressing OS images
zip files larger than 4GB.
@carlosperate carlosperate changed the title Update BusyBox base image to v.1.34 Update BusyBox base image to v1.34 Oct 15, 2021
@carlosperate
Copy link
Author

@lukechilds just a friendly ping, in case there is anything I could do to help the review. This is a small and fairly safe PR, just updating the BusyBox image version.

carlosperate added a commit to carlosperate/docker-qemu-rpi-os that referenced this pull request Jan 3, 2022
The current lukechilds/dockerpi:vm has an issue uncompressing fs images
larger than 1 GB, so it has been temporarily forked with the fix
More info: lukechilds/dockerpi#48
@@ -60,7 +60,7 @@ RUN make -j$(nproc)


# Build the dockerpi VM image
FROM busybox:1.31 AS dockerpi-vm
FROM busybox:1.34 AS dockerpi-vm
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Latest version is 1.36 per https://hub.docker.com/_/busybox/tags

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @rasa! I'd be happy to update the PR if needed, but doesn't look like this project is being maintained :(

Hopefully having these PRs open can still help people encountering this issue.

I've been using a simple fork with this patch for my own images based on top of this one: https://github.com/carlosperate/dockerpi/pkgs/container/dockerpi/12649266?tag=vm-fix

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.

None yet

2 participants