EkkoG / OpenWrt

基于 OpenWrt/ImmortalWrt 官方 ImageBuilder 的自定义固件,集成常用软件,开机即可用,使用 Docker 编译,无需配置编译环境
https://github.com/EkkoG/OpenWrt
72 stars 23 forks source link

firewall4支持么 #4

Closed raighnew closed 3 days ago

raighnew commented 3 days ago

想安装OpenWrt-mihomo

EkkoG commented 3 days ago

是否支持 fw4 要看用什么配置构建

raighnew commented 3 days ago

我正在基于你的脚本编译23.05.04版本,看看会不会默认支持firewall4

raighnew commented 3 days ago

clash-meta-for-openclash 安装失败,

imagebuilder  | Configuring luci-i18n-firewall-zh-cn.
imagebuilder  | Configuring ppp-mod-pppoe.
imagebuilder  | make[1]: *** [Makefile:144: _call_image] Error 2
imagebuilder  | make: *** [Makefile:262: image] Error 2

imagebuilder exited with code 2
time="2024-09-22T09:06:08Z" level=warning msg="/home/runner/work/OpenWrt/OpenWrt/docker-compose.yml: `version` is obsolete"
Going to remove imagebuilder
 Container imagebuilder  Removing
 Container imagebuilder  Removed
bin:
targets
EkkoG commented 3 days ago

请贴完整日志,注意去掉敏感信息

raighnew commented 3 days ago

run.log 好像看不出什么,但是注释掉openclash相关代码可以编译。

EkkoG commented 3 days ago

原因是没有加 clash 的软件源,不设置 CLASH_CONFIG_URL 是会导致这个问题,但是日志里没有看到有相关的报错

2024-09-22T10:44:31.2712306Z imagebuilder  | Running post-files.sh for openclash
2024-09-22T10:44:31.2744582Z imagebuilder  | All packages:  zoneinfo-all luci luci-compat luci-lib-ipkg luci-i18n-opkg-zh-cn -dnsmasq dnsmasq-full luci-i18n-base-zh-cn luci-i18n-firewall-zh-cn openssl-util luci-app-temp-status luci-app-statistics collectd-mod-irq collectd-mod-sensors bind-dig wget curl vim-full diffutils nping tcpdump conntrack luci-app-openclash clash-meta-for-openclash

正常这两行中间应该有错误信息的,你的日志是怎么收集的呢 用重定向吗

而且不设置 CLASH_CONFIG_URL 应该会结束构建的,你的并没有结束构建,是怎么用的呢

raighnew commented 3 days ago

贴一下这里 https://github.com/raighnew/OpenWrt/actions/runs/10980754807/job/30486920855,我就是用github action跑的,不知道你能不能看到日志

EkkoG commented 3 days ago

你把 openclash 的 post-file.sh 注释完了啊。。。https://github.com/raighnew/OpenWrt/blob/master/modules/openclash/post-files.sh 注释了当然会缺少软件源

EkkoG commented 3 days ago

改代码前弄清楚改的代码是什么作用吧

raighnew commented 3 days ago

对不起,我一开始注释是为了测试能不能先编译一个最简单版本出来,之后忘了uncomment出来。