-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
freifunk-policyrouting: do not run init-script in imagebuilder #1635
Conversation
When creating final images the build-scripts running the package init-scripts. As of including files like on a real system (line 4 and 5), with absolute path, this will fail. Activating init scripts build_dir/target-mips_24kc_musl/root-ar71xx/etc/init.d/freifunk-policyrouting: line 4: /lib/functions/network.sh: No such file or directory build_dir/target-mips_24kc_musl/root-ar71xx/etc/init.d/freifunk-policyrouting: line 5: /lib/functions.sh: No such file or directory Running this init-script outside of a real-system don't seem to make sense at all, so just exit gracefully. Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
I think we might as well just remove the postinst script from the Makefile because it seems that OpenWrt now automatically enables init scripts on package install. @jow- can you confirm that? i'm a bit out of the loop. |
@jow any comment on this? |
I agree with @mmunz - let’s just remove the postinstall |
@SvenRoederer Please open a new pullrequest and remove the postinstall script mentioned by jow. |
after splitting the freifunk-packages into a separate feed, this issue became orphaned anyway and way open only as a reminder. |
OpenWrt now enables the init-scripts be default, so there is no need to do this manually anymore. See: openwrt/luci#1635 (comment) Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
OpenWrt now enables the init-scripts by default, so there is no need to do this manually anymore. See: openwrt/luci#1635 (comment) Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
OpenWrt now enables the init-scripts by default, so there is no need to do this manually anymore. See: openwrt/luci#1635 (comment) Signed-off-by: Sven Roederer <freifunk@it-solutions.geroedel.de>
When creating final images the build-scripts running the package init-scripts. As of including files like on a real system (line 4, 5), with absolute path, this will fail.
Running this init-script outside of a real-system don't seem to make sense at all, so just exit gracefully.