Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

SvenRoederer
Copy link
Contributor

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.

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.

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>
@mmunz
Copy link
Member

mmunz commented Feb 24, 2018

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.

@SvenRoederer
Copy link
Contributor Author

@jow any comment on this?

@jow-
Copy link
Contributor

jow- commented Apr 29, 2018

I agree with @mmunz - let’s just remove the postinstall

@feckert
Copy link
Member

feckert commented May 1, 2019

@SvenRoederer Please open a new pullrequest and remove the postinstall script mentioned by jow.
Additional this pullrequest needs also a rebase so I will close this.

@SvenRoederer
Copy link
Contributor Author

after splitting the freifunk-packages into a separate feed, this issue became orphaned anyway and way open only as a reminder.

@SvenRoederer SvenRoederer deleted the patch-1 branch January 1, 2020 22:38
@SvenRoederer SvenRoederer restored the patch-1 branch January 1, 2020 22:49
SvenRoederer added a commit to freifunk/openwrt-packages that referenced this pull request Jan 2, 2020
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>
@SvenRoederer SvenRoederer deleted the patch-1 branch January 2, 2020 00:30
SvenRoederer added a commit to freifunk/openwrt-packages that referenced this pull request Feb 16, 2020
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>
SvenRoederer added a commit to freifunk/openwrt-packages that referenced this pull request Feb 16, 2020
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants