systemd: make unit files symlinks

master
Harald Hoyer 2013-06-13 10:52:46 +02:00
parent cee4599131
commit 373efa4427
2 changed files with 19 additions and 19 deletions

View File

@ -124,9 +124,9 @@ endif
dracut-pre-trigger.service \
dracut-pre-udev.service \
; do \
install -m 0644 modules.d/98systemd/$$i $(DESTDIR)$(systemdsystemunitdir); \
ln -srf $(DESTDIR)$(pkglibdir)/modules.d/98systemd/$$i $(DESTDIR)$(systemdsystemunitdir); \
ln -s ../$$i \
$(DESTDIR)$(systemdsystemunitdir)/initrd.target.wants/$i; \
$(DESTDIR)$(systemdsystemunitdir)/initrd.target.wants/$$i; \
done \
fi
if [ -f install/dracut-install ]; then \

View File

@ -95,21 +95,6 @@ install() {
$systemdsystemunitdir/sysinit.target.wants/systemd-udevd.service \
$systemdsystemunitdir/sysinit.target.wants/systemd-udev-trigger.service \
\
$systemdsystemunitdir/dracut-cmdline.service \
$systemdsystemunitdir/dracut-initqueue.service \
$systemdsystemunitdir/dracut-mount.service \
$systemdsystemunitdir/dracut-pre-mount.service \
$systemdsystemunitdir/dracut-pre-pivot.service \
$systemdsystemunitdir/dracut-pre-trigger.service \
$systemdsystemunitdir/dracut-pre-udev.service \
$systemdsystemunitdir/initrd.target.wants/dracut-cmdline.service \
$systemdsystemunitdir/initrd.target.wants/dracut-initqueue.service \
$systemdsystemunitdir/initrd.target.wants/dracut-mount.service \
$systemdsystemunitdir/initrd.target.wants/dracut-pre-mount.service \
$systemdsystemunitdir/initrd.target.wants/dracut-pre-pivot.service \
$systemdsystemunitdir/initrd.target.wants/dracut-pre-trigger.service \
$systemdsystemunitdir/initrd.target.wants/dracut-pre-udev.service \
\
$systemdsystemunitdir/ctrl-alt-del.target \
$systemdsystemunitdir/syslog.socket \
$systemdsystemunitdir/initrd-switch-root.target \
@ -197,11 +182,26 @@ install() {
systemd-ask-password-console.service \
systemd-ask-password-plymouth.service \
; do
mkdir -p "${initdir}${systemdsystemconfdir}/${i}.wants"
mkdir -p "${initdir}${systemdsystemunitdir}/${i}.wants"
ln_r "${systemdsystemunitdir}/systemd-vconsole-setup.service" \
"${systemdsystemconfdir}/${i}.wants/systemd-vconsole-setup.service"
"${systemdsystemunitdir}/${i}.wants/systemd-vconsole-setup.service"
done

mkdir -p "${initdir}/$systemdsystemunitdir/initrd.target.wants"
for i in \
dracut-cmdline.service \
dracut-initqueue.service \
dracut-mount.service \
dracut-pre-mount.service \
dracut-pre-pivot.service \
dracut-pre-trigger.service \
dracut-pre-udev.service \
; do
inst_simple "$moddir/${i}" "$systemdsystemunitdir/${i}"
ln_r "$systemdsystemunitdir/${i}" "$systemdsystemunitdir/initrd.target.wants/${i}"
done


# turn off RateLimit for journal
{
echo "[Journal]"