summaryrefslogtreecommitdiffstats
path: root/systemd/mkinitcpio-generate-shutdown-ramfs.service
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2013-11-27 21:24:27 +0100
committerDave Reisner <dreisner@archlinux.org>2013-11-27 21:24:27 +0100
commitb8f596eee60bfec4efced5b2a448f1e4ca7ee189 (patch)
treeb2b0a2ee0a44a31ea6b8ac2e8bbb59dd67940e3c /systemd/mkinitcpio-generate-shutdown-ramfs.service
parente7b20bb79e72b311e7dce76d1b9f67eb8dcaa641 (diff)
downloadmkinitcpio-b8f596eee60bfec4efced5b2a448f1e4ca7ee189.tar.gz
mkinitcpio-b8f596eee60bfec4efced5b2a448f1e4ca7ee189.tar.xz
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.
Diffstat (limited to 'systemd/mkinitcpio-generate-shutdown-ramfs.service')
-rw-r--r--systemd/mkinitcpio-generate-shutdown-ramfs.service2
1 files changed, 1 insertions, 1 deletions
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