aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Duskett <adam.duskett@amarulasolutions.com>2023-10-10 10:00:24 +0200
committerMike Frysinger <vapier@gmail.com>2023-10-10 08:55:33 -0400
commitb85d771e1f90e56008be5a0f2d9f986648c689f4 (patch)
tree89ad4bf464759b0b7b70fed6ed0273c0d301ee30
parentcf9286d2d84f7aef237ec0d363c692ef5035aa85 (diff)
Force symlinking of openrc-init to init
When building on embedded SDKs such as Buildroot or Yocto, if OpenRC has a previous installation, the package will fail the installation step as the openrc-init is already a symlink to "${DESTDIR}/${sbindir}"/init. Force symlinking to prevent errors when reinstalling the package.
-rwxr-xr-xtools/meson_final.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/meson_final.sh b/tools/meson_final.sh
index ecec6eaa..ef91f9e3 100755
--- a/tools/meson_final.sh
+++ b/tools/meson_final.sh
@@ -13,5 +13,5 @@ if [ "${os}" != Linux ]; then
fi
install -m 644 "${MESON_BUILD_ROOT}/src/shared/version" "${DESTDIR}/${rc_libexecdir}"
if [ "${os}" = Linux ] && [ "${sysvinit}" = yes ]; then
- ln -s openrc-init "${DESTDIR}/${sbindir}"/init
+ ln -sf openrc-init "${DESTDIR}/${sbindir}"/init
fi