jerrykuku / luci-theme-argon

Argon is a clean and tidy OpenWrt LuCI theme that allows users to customize their login interface with images or videos. It also supports automatic and manual switching between light and dark modes.
Apache License 2.0
3.84k stars 771 forks source link

imageBuilder下主题打包报错 #281

Open zhangguanzhang opened 2 years ago

zhangguanzhang commented 2 years ago

18.06分支下编译固件

$ make image PACKAGES="$PACKAGES ${extra_pkgs}" FILES="files"
...
...
Configuring luci-i18n-upnp-zh-cn.
Configuring kmod-usb-net-sr9700.
Configuring coreutils-cat.
Configuring kmod-dummy.
Configuring kmod-fs-squashfs.
Configuring kmod-net-prism54.
Configuring luci-app-docker.
Configuring iperf3.
Configuring tmate.
Configuring kmod-p54-usb.
Configuring luci-i18n-firewall-zh-cn.
Configuring luci-i18n-docker-zh-cn.
Configuring ppp-mod-pppoe.
Configuring luci-i18n-nlbwmon-zh-cn.
Configuring libnl-genl200.
Configuring ipvsadm.
Configuring luci-proto-ncm.
Configuring kmod-net-rtl8192su.

Finalizing root filesystem...
/root/op/openwrt-imagebuilder-rockchip-armv8.Linux-x86_64/staging_dir/host/bin/sed: can't read /usr/lib/lua/luci/dispatcher.lua: No such file or directory
/root/op/openwrt-imagebuilder-rockchip-armv8.Linux-x86_64/staging_dir/host/bin/sed: can't read /usr/lib/lua/luci/dispatcher.lua: No such file or directory
Enabling AdGuardHome
Enabling aliyundrive-webdav
Enabling aria2
Enabling arpbind
Enabling autoreboot
Enabling boot
Enabling cgroupfs-mount
...
...

find 了下发现是这些

root@guan:/home/guanzhang/lede# find -type f -exec grep -Pzil 'sed.+?/usr/lib/lua/luci/dispatcher.lua' {} \;
./package/lean/luci-app-filetransfer/root/etc/uci-defaults/luci-filetransfer
./feeds/others/luci-app-argon-config/root/etc/uci-defaults/luci-argon-config
./feeds/others/luci-theme-argon/Makefile
./feeds/others/luci-theme-argon/root/etc/uci-defaults/90_luci-theme-argon
./feeds/others/luci-theme-edge/Makefile
./feeds/others/luci-theme-edge/root/etc/uci-defaults/30_luci-theme-edge

最后发现 Makefile 里 define Package/luci-theme-argon/postinst 阶段会生成文件 etc/uci-defaults/90_luci-theme-argon 我hack了下,在内部的脚本加了一行后打包就没有这个报错了:

[ ! -f /etc/openwrt_release ] && exit 0

添加的逻辑判断是保证在openwrt的 chroot 和真实的 openwrt 里才能执行

zhangguanzhang commented 2 years ago

@jerrykuku

SpeedPartner commented 1 year ago

没看懂 /usr/lib/lua/luci/dispatcher.lua: No such file or directory 使用[ ! -f /etc/openwrt_release ] && exit 0可以修复?...

zhangguanzhang commented 1 year ago

没看懂 /usr/lib/lua/luci/dispatcher.lua: No such file or directory 使用[ ! -f /etc/openwrt_release ] && exit 0可以修复?...

en

SpeedPartner commented 1 year ago

你现在还有这个问题吗?我这边编译没问题啊

zhangguanzhang commented 1 year ago

你现在还有这个问题吗?我这边编译没问题啊

imageBuilder虾构建才回有这个报错的,不影响的