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.
---
 mkinitcpio-generate-shutdown-ramfs.service | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mkinitcpio-generate-shutdown-ramfs.service 
b/mkinitcpio-generate-shutdown-ramfs.service
index 36c2508..d5876df 100644
--- a/mkinitcpio-generate-shutdown-ramfs.service
+++ b/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
-- 
1.8.4.2

Reply via email to