Skip to content

Commit

Permalink
Force symlinking of openrc-init to init
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Adam Duskett authored and vapier committed Oct 10, 2023
1 parent cf9286d commit b85d771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/meson_final.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b85d771

Please sign in to comment.