diff options
author | Thomas Bächler <thomas@archlinux.org> | 2013-11-27 19:30:04 +0100 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2013-11-27 21:21:13 +0100 |
commit | cf9be93525fb393b0db85a341dfca6fafdd9fab7 (patch) | |
tree | 9ff72cb7963f0fc810db85a76fc6d14d783a430b /mkinitcpio | |
parent | 9e2c16294bd6281ecbf7ab96e9b14a10154c4f01 (diff) | |
download | mkinitcpio-cf9be93525fb393b0db85a341dfca6fafdd9fab7.tar.gz mkinitcpio-cf9be93525fb393b0db85a341dfca6fafdd9fab7.tar.xz |
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.
Diffstat (limited to 'mkinitcpio')
-rwxr-xr-x | mkinitcpio | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -417,7 +417,7 @@ fi KERNELVERSION=$(resolve_kernver "$_optkver") || cleanup 1 _d_kmoduledir=$_optmoduleroot/lib/modules/$KERNELVERSION -[[ -d $_d_kmoduledir ]] || die "'$_d_kmoduledir' is not a valid kernel module directory" +[[ $KERNELVERSION == none || -d $_d_kmoduledir ]] || die "'$_d_kmoduledir' is not a valid kernel module directory" _d_workdir=$(initialize_buildroot "$KERNELVERSION" $_opttargetdir) || cleanup 1 BUILDROOT=${_opttargetdir:-$_d_workdir/root} |