systemd holds the path to systemd and systemd-shutdown in memory.
The symlinks ensure that re-exec and reboot will work.
Also, the bootloader init option will not need to be updated immediately.
Package-Manager: Portage-2.3.5_p31, Repoman-2.3.2_p61
-Dbashcompletiondir="$(get_bashcompdir)"
# make sure we get /bin:/sbin in $PATH
-Dsplit-usr=true
- -Drootprefix="${ROOTPREFIX}"
+ -Drootprefix="${EPREFIX}${ROOTPREFIX}"
-Dsysvinit-path=
-Dsysvrcnd-path=
# no deps
rm -r "${ED%/}"/etc/systemd/system/sysinit.target.wants || die
rm -r "${ED%/}${ROOTPREFIX%/}/lib/udev/hwdb.d" || die
+
+ if [[ ! -e "${ED%/}"/usr/lib/systemd/systemd ]]; then
+ # Avoid breaking boot/reboot
+ dosym "../../..${ROOTPREFIX%/}/lib/systemd/systemd" /usr/lib/systemd/systemd
+ dosym "../../..${ROOTPREFIX%/}/lib/systemd/systemd-shutdown" /usr/lib/systemd/systemd-shutdown
+ fi
}
migrate_locale() {