Commit bc7a482
fix: eliminate host binary dependency in setup-iptables for chroot mode (#456)
* Initial plan
* fix: replace head with awk in setup-iptables for chroot mode
Replace `head -n 1` with awk's NR==1 to avoid GLIBC version mismatch
when running in chroot mode. In chroot mode, host binaries are mounted
at /host/*, and setup-iptables.sh runs before the chroot happens.
The host's head binary may require a newer GLIBC than available in
the container (Ubuntu 22.04 has GLIBC 2.35, GitHub Actions runners
have GLIBC 2.38+).
This fixes the error:
head: /lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.38' not found
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Mossaka <5447827+Mossaka@users.noreply.github.com>1 parent 7c5d99f commit bc7a482
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments