From b8f596eee60bfec4efced5b2a448f1e4ca7ee189 Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Wed, 27 Nov 2013 15:24:27 -0500 Subject: sd-shutdown: don't fail after kernel updates When the module directory matching $(uname -r) cannot be found, generation of the shutdown ramfs aborted: systemd[1]: Starting Generate shutdown-ramfs... mkinitcpio[1944]: ==> ERROR: '/lib/modules/3.12.1-1-ARCH' is not a valid kernel module directory systemd[1]: mkinitcpio-generate-shutdown-ramfs.service: main process exited, code=exited, status=1/FAILURE systemd[1]: Failed to start Generate shutdown-ramfs. systemd[1]: Unit mkinitcpio-generate-shutdown-ramfs.service entered failed state. Tell mkinitcpio that we do not wish to add any kernel modules. --- systemd/mkinitcpio-generate-shutdown-ramfs.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/systemd/mkinitcpio-generate-shutdown-ramfs.service b/systemd/mkinitcpio-generate-shutdown-ramfs.service index 36c2508..d5876df 100644 --- a/systemd/mkinitcpio-generate-shutdown-ramfs.service +++ b/systemd/mkinitcpio-generate-shutdown-ramfs.service @@ -9,7 +9,7 @@ Type=oneshot # /tmp could be umounted at this point # use /run as temporary directory Environment=TMPDIR=/run -ExecStart=/usr/bin/mkinitcpio -A sd-shutdown -c /dev/null -d /run/initramfs +ExecStart=/usr/bin/mkinitcpio -A sd-shutdown -k none -c /dev/null -d /run/initramfs [Install] WantedBy=shutdown.target -- cgit v1.2.3-24-g4f1b