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

Add a .img builder workflow /claim #1688 #1689

Open
wants to merge 36 commits into
base: master
Choose a base branch
from
Open

Conversation

NL-TCH
Copy link
Contributor

@NL-TCH NL-TCH commented Oct 31, 2024

This github action builds a .img file and adds it as an artifact:
/claim #1688

@NL-TCH NL-TCH changed the title Add a .img builder workflow Add a .img builder workflow /claim #1688 Oct 31, 2024
@NL-TCH
Copy link
Contributor Author

NL-TCH commented Oct 31, 2024

@billz do you know why this PR isn't indexed by the Algora bot as a submitted solution?

@NL-TCH
Copy link
Contributor Author

NL-TCH commented Oct 31, 2024

*thanks for mentioning me in the issue :) very much appreciated!

@billz
Copy link
Member

billz commented Oct 31, 2024

@NL-TCH that was fast 😅 I was AFK most of the day. Will test this first thing tomorrow, thx!

@NL-TCH
Copy link
Contributor Author

NL-TCH commented Oct 31, 2024

there seems to be a problem with the DNS in the github action. in previous commands it could resolve archive.raspberrypi.com but after some time not anymore:

https://github.com/NL-TCH/raspap-webgui/actions/runs/11617939233/job/32354250004

  Creating loop device...
  Warning: mkfs.fat: Warning: lowercase labels might not work properly on some systems
  Warning: mke2fs 1.46.2 (28-Feb-2021)
  mount: /dev/loop3p2 mounted on /pi-gen/work/raspap-latest/export-image/rootfs.
  mount: /dev/loop3p1 mounted on /pi-gen/work/raspap-latest/export-image/rootfs/boot/firmware.
  [19:03:47] End /pi-gen/export-image/prerun.sh
  [19:03:47] Begin /pi-gen/export-image/00-allow-rerun
  [19:03:47] Begin /pi-gen/export-image/00-allow-rerun/00-run.sh
  [19:03:47] End /pi-gen/export-image/00-allow-rerun/00-run.sh
  [19:03:47] End /pi-gen/export-image/00-allow-rerun
  [19:03:47] Begin /pi-gen/export-image/01-user-rename
  [19:03:47] Begin /pi-gen/export-image/01-user-rename/00-packages
  Reading package lists...
  Building dependency tree...
  Reading state information...
  The following packages were automatically installed and are no longer required:
    bluez dhcpcd
  Use 'apt autoremove' to remove them.
  The following additional packages will be installed:
    raspberrypi-sys-mods
  The following packages will be REMOVED:
    dhcpcd5
  The following NEW packages will be installed:
    raspberrypi-sys-mods userconf-pi
  0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded.
  Need to get 28.5 kB of archives.
  After this operation, 127 kB of additional disk space will be used.
  Ign:1 http://archive.raspberrypi.com/debian bookworm/main arm64 raspberrypi-sys-mods arm64 20241030
  Ign:2 http://archive.raspberrypi.com/debian bookworm/main arm64 userconf-pi all 0.10
  Ign:1 http://archive.raspberrypi.com/debian bookworm/main arm64 raspberrypi-sys-mods arm64 20241030
  Ign:2 http://archive.raspberrypi.com/debian bookworm/main arm64 userconf-pi all 0.10
  Ign:1 http://archive.raspberrypi.com/debian bookworm/main arm64 raspberrypi-sys-mods arm64 20241030
  Ign:2 http://archive.raspberrypi.com/debian bookworm/main arm64 userconf-pi all 0.10
  Err:1 http://archive.raspberrypi.com/debian bookworm/main arm64 raspberrypi-sys-mods arm64 20241030
    Temporary failure resolving 'archive.raspberrypi.com'
  Ign:2 http://archive.raspberrypi.com/debian bookworm/main arm64 userconf-pi all 0.10
  Err:2 http://archive.raspberrypi.com/debian bookworm/main arm64 userconf-pi all 0.10
    Temporary failure resolving 'archive.raspberrypi.com'
  Warning: 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'
  Warning: 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'
  Warning: E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
  [19:03:56] Build failed
  Warning: real	20m26.079s
  Warning: user	0m0.112s
  Warning: sys	0m0.265s
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?

@billz
Copy link
Member

billz commented Nov 1, 2024

possible workaround?

on_chroot << EOF
echo 'nameserver 1.1.1.1' | tee -a /etc/resolv.conf
apt-get -y update
EOF

source: RPi-Distro/pi-gen#553 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants