systemd: make unit files symlinks
parent
cee4599131
commit
373efa4427
4
Makefile
4
Makefile
|
@ -124,9 +124,9 @@ endif
|
||||||
dracut-pre-trigger.service \
|
dracut-pre-trigger.service \
|
||||||
dracut-pre-udev.service \
|
dracut-pre-udev.service \
|
||||||
; do \
|
; do \
|
||||||
install -m 0644 modules.d/98systemd/$$i $(DESTDIR)$(systemdsystemunitdir); \
|
ln -srf $(DESTDIR)$(pkglibdir)/modules.d/98systemd/$$i $(DESTDIR)$(systemdsystemunitdir); \
|
||||||
ln -s ../$$i \
|
ln -s ../$$i \
|
||||||
$(DESTDIR)$(systemdsystemunitdir)/initrd.target.wants/$i; \
|
$(DESTDIR)$(systemdsystemunitdir)/initrd.target.wants/$$i; \
|
||||||
done \
|
done \
|
||||||
fi
|
fi
|
||||||
if [ -f install/dracut-install ]; then \
|
if [ -f install/dracut-install ]; then \
|
||||||
|
|
|
@ -95,21 +95,6 @@ install() {
|
||||||
$systemdsystemunitdir/sysinit.target.wants/systemd-udevd.service \
|
$systemdsystemunitdir/sysinit.target.wants/systemd-udevd.service \
|
||||||
$systemdsystemunitdir/sysinit.target.wants/systemd-udev-trigger.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/ctrl-alt-del.target \
|
||||||
$systemdsystemunitdir/syslog.socket \
|
$systemdsystemunitdir/syslog.socket \
|
||||||
$systemdsystemunitdir/initrd-switch-root.target \
|
$systemdsystemunitdir/initrd-switch-root.target \
|
||||||
|
@ -197,11 +182,26 @@ install() {
|
||||||
systemd-ask-password-console.service \
|
systemd-ask-password-console.service \
|
||||||
systemd-ask-password-plymouth.service \
|
systemd-ask-password-plymouth.service \
|
||||||
; do
|
; do
|
||||||
mkdir -p "${initdir}${systemdsystemconfdir}/${i}.wants"
|
mkdir -p "${initdir}${systemdsystemunitdir}/${i}.wants"
|
||||||
ln_r "${systemdsystemunitdir}/systemd-vconsole-setup.service" \
|
ln_r "${systemdsystemunitdir}/systemd-vconsole-setup.service" \
|
||||||
"${systemdsystemconfdir}/${i}.wants/systemd-vconsole-setup.service"
|
"${systemdsystemunitdir}/${i}.wants/systemd-vconsole-setup.service"
|
||||||
done
|
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
|
# turn off RateLimit for journal
|
||||||
{
|
{
|
||||||
echo "[Journal]"
|
echo "[Journal]"
|
||||||
|
|
Loading…
Reference in New Issue