[arch-projects] [mkinitcpio] [RFC] Install mkinitcpio-generate-shutdown-ramfs.service as a static service
Pretty much everyone benefits from this service, as it is always better than having no shutdown-ramfs. If someone puts their own shutdown-ramfs in place, it will likely be done by initramfs and this service will be skipped automatically. In more obscure situations, it can still be masked. --- Makefile | 3 ++- mkinitcpio-generate-shutdown-ramfs.service | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 38a7111..ea785c0 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ DIRS = \ /usr/share/man/man5 \ /usr/share/man/man1 \ /usr/share/mkinitcpio \ - /usr/lib/systemd/system + /usr/lib/systemd/system/shutdown.target.wants all: doc @@ -50,6 +50,7 @@ install: all cp -at $(DESTDIR)/usr/lib/initcpio hooks install install -m644 -t $(DESTDIR)/usr/share/mkinitcpio mkinitcpio.d/* install -m644 mkinitcpio-generate-shutdown-ramfs.service $(DESTDIR)/usr/lib/systemd/system/mkinitcpio-generate-shutdown-ramfs.service + ln -s ../mkinitcpio-generate-shutdown-ramfs.service $(DESTDIR)/usr/lib/systemd/system/shutdown.target.wants/mkinitcpio-generate-shutdown-ramfs.service install -m755 50-mkinitcpio.install $(DESTDIR)/usr/lib/kernel/install.d/50-mkinitcpio.install diff --git a/mkinitcpio-generate-shutdown-ramfs.service b/mkinitcpio-generate-shutdown-ramfs.service index d5876df..923dd59 100644 --- a/mkinitcpio-generate-shutdown-ramfs.service +++ b/mkinitcpio-generate-shutdown-ramfs.service @@ -10,6 +10,3 @@ Type=oneshot # use /run as temporary directory Environment=TMPDIR=/run ExecStart=/usr/bin/mkinitcpio -A sd-shutdown -k none -c /dev/null -d /run/initramfs - -[Install] -WantedBy=shutdown.target -- 1.8.4.2
participants (1)
-
Thomas Bächler