-
-
Notifications
You must be signed in to change notification settings - Fork 796
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
ci: build 32 bit and 64 bit images #1690
Conversation
This reverts commit a1b0ade.
d6ec8dc
to
69d58f4
Compare
@Dhanus3133 thanks for the PR! I'll give it a round of testing first thing tomorrow. |
Thanks! However, I’m running into an issue with the custom user stage for package installation. You can check the logs here. Error: pi-gen build failed with exit code 100
mkfs.fat: Warning: lowercase labels might not work properly on some systems
mke2fs 1.46.2 (28-Feb-2021)
E: Failed to fetch http://archive.raspberrypi.com/debian/pool/main/r/raspberrypi-sys-mods/raspberrypi-sys-mods_20241030_arm64.deb Temporary failure resolving 'archive.raspberrypi.com'
E: Failed to fetch http://archive.raspberrypi.com/debian/pool/main/u/userconf-pi/userconf-pi_0.10_all.deb Temporary failure resolving 'archive.raspberrypi.com'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? When I skip the custom stage, the CI build from my fork runs successfully, as build images in this release. I also tried reaching out to you via Discord. |
@billz resolved the issue. It should now be good for testing. You can use the build image from the fork. |
@Dhanus3133 I'll give each image a thorough test. thanks! |
Testing the 64-bit image. A couple of observations:
The first point should be easily fixed. Will need to give the latter a closer look. Otherwise looking good. |
Interestingly, the build-raspap-image (64-bit, arm64) log indicates that the package is installed:
|
Also noticed that routing and IP masquerading fails in the build:
I haven't looked more closely to determine the cause. Hopefully these are minor fixes that can be resolved. |
Regarding this, I believe enabling OpenVPN may be causing a DNS issue in the |
See #1689 (comment) |
Thanks, this didn't work out, but there was a simple way to fix it.
All the required packages are installed, but since the actual error is hidden, I'm not sure how to solve this issue. Let me know what do you think about this. You can find the latest build images for all the enabled flags here. PS: Can you please verify if that installed properly, cause I noticed the new build images are much more smaller than the previous builds. |
Pulling the latest 64-bit image now. |
@billz Can you test this release build for the commit 38ce0ec? You can find the release here: test release. It should work, but please note that this build was created through a custom fork of my pi-gen repository. You can check the changes here on the I believe these changes are required to ensure the builds succeed without any issues related to networking. If you think this is a viable solution, we can consider forking pi-gen into the RaspAP org, make the necessary changes, and use that fork repository within the pi-gen-action. Let me know your thoughts! |
@Dhanus3133 I'll make time and re-test with these changes soon. thanks! |
@Dhanus3133 I tested RaspAP's core functionality in the From what I saw in your pi-gen/arm64 fork, changing the execution order in export-image was the trick. Is this correct? So to integrate this we'd fork your changes to
Let me know if I've got this right, thanks. |
@billz Yes, I have pushed all the required changes in the recent commit. Here is the build release.
- name: Build RaspAP Image
id: build
uses: usimd/pi-gen-action@v1
with:
image-name: "raspap-${{ github.ref_name }}-${{ matrix.arch }}"
enable-ssh: 1
stage-list: stage0 stage1 stage2 ./stage-raspap
verbose-output: true
pi-gen-version: ${{ matrix.pi_gen_version }}
+ pi-gen-repository: RaspAP/pi-gen I have added this. You can fork pi-gen into RaspAP and apply this patch to the |
Makes sense. I'll fork the repo and apply your patch. This is looking really good :) |
@billz I checked the fork you created, and it seems you might have forgotten to uncheck this option.
|
@Dhanus3133 you're absolutely right. I'll create a new fork. thanks for catching this. |
Alright, patch applied to the arm64 branch. Your latest 32- and 64-bit builds both passed, so I should expect the same on the next published release. Adding
I assume that without a corresponding release or tag there won't be a valid destination for I'll award you the bounty and give you a shout on our various channels (x, discord, reddit, etc). |
Thanks! Yes, adding
|
I see that now, thanks! Probably could have answered my own question by searching 😉 |
@Dhanus3133 what do you think about opening a PR with your patch on the arm64 branch of RPi-Distro/pi-gen with a concise description of the issue you found? |
Yes, I had tried here. I did DM'ed regarding this one on Discord seems you had missed it. |
I see. Well, it's not a big issue. Just thought it could potentially help other users. We'll maintain the pi-gen fork going forward. Thanks again. |
/claim #1688