From cf9be93525fb393b0db85a341dfca6fafdd9fab7 Mon Sep 17 00:00:00 2001 From: Thomas Bächler Date: Wed, 27 Nov 2013 19:30:04 +0100 Subject: mkinitcpio: Allow building an image without modules The '-k none' switch prevents mkinitcpio from adding modules to the image and keeps it from bailing out when it cannot find any. --- install/autodetect | 2 ++ 1 file changed, 2 insertions(+) (limited to 'install/autodetect') diff --git a/install/autodetect b/install/autodetect index 37af3be..c98db73 100644 --- a/install/autodetect +++ b/install/autodetect @@ -4,6 +4,8 @@ build() { local m= local -a md_devs mods + [[ $KERNELVERSION == none ]] && return 0 + add_if_avail() { local r= resolved=() -- cgit v1.2.3-24-g4f1b