~bigbes/sourcehut-root

0a5426302d52cf75e6b80fcbe5a495ce73e33ac0 — Eugene Blikh 8 days ago 6d2d853
patches: ubuntu/genimg — correct context lines for the network hunk

The previous version had stale context (EOF / fi / DHCP=yes) that didn't
match the actual recipe. Replace with the real surrounding lines (resolv.conf
nameservers above, Address=10.0.2.15/24 below) so `patch -p0` applies
cleanly on a fresh apk recipe tree.
1 files changed, 4 insertions(+), 4 deletions(-)

M patches/builds-images-ubuntu-genimg.patch
M patches/builds-images-ubuntu-genimg.patch => patches/builds-images-ubuntu-genimg.patch +4 -4
@@ 43,9 43,9 @@ Apply when refreshing the apk recipe tree on the image-builder host:

 if [ "$arch" = "amd64" ]
@@ -85,9 +86,9 @@
 EOF
 fi

 rm -f /mnt/etc/resolv.conf
 echo 'nameserver 8.8.8.8' >/mnt/etc/resolv.conf
 echo 'nameserver 8.8.4.4' >>/mnt/etc/resolv.conf
-cat >/mnt/etc/systemd/network/25-ens3.network <<EOF
+cat >/mnt/etc/systemd/network/25-ethernet.network <<EOF
 [Match]


@@ 53,7 53,7 @@ Apply when refreshing the apk recipe tree on the image-builder host:
+Name=en*

 [Network]
 DHCP=yes
 Address=10.0.2.15/24
@@ -163,7 +164,7 @@
   name = builds.sr.ht
   email = builds@sr.ht