coolsnowwolf/luci

luci-app-filetransfer 在 imageBuilder 打包的时候报错 sed: can't read /usr/lib/lua/luci/dispatcher.lua: No such file or directory

zhangguanzhang opened this issue · 1 comments

$ make image PACKAGES="$PACKAGES ${extra_pkgs}" FILES="files"
...
...
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
...

然后我在文件 package/lean/luci-app-filetransfer/root/etc/uci-defaults/luci-filetransfer 里hack加了句

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

就没这个错误了,应该有 IPKG_INSTROOT 之类的 chroot 里去执行才对,我这种hack应该是不标准的

类似问题在 feeds/luci/applications/luci-app-unblockmusic/root/etc/init.d/unblockmusic 也存在

Enabling umount
./etc/init.d/unblockmusic: line 3: /lib/functions/network.sh: No such file or directory
./etc/init.d/unblockmusic: line 82: network_flush_cache: command not found
./etc/init.d/unblockmusic: line 83: network_get_ipaddr: command not found
Enabling unblockmusic

您pr下

我对op的chroot部分不懂,不知道如何修复是符合要求的