From 7bfb117bd984e7ec29f38e48ddcc0335bfd43a42 Mon Sep 17 00:00:00 2001 From: illiliti Date: Sun, 16 Feb 2020 04:32:13 +0300 Subject: [PATCH] initial monolithic kernel support --- generate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generate b/generate index c6fce0a..c22d9e8 100755 --- a/generate +++ b/generate @@ -177,6 +177,9 @@ install_luks() { # install drivers and deps install_driver() { + # check monolithic kernel(builtin drivers) + [ -d "${moddir}/${kernel}" ] || return 0 + printf "%s\n" "$@" | while read -r driver; do # strip path and extension driver="${driver##*/}" @@ -186,9 +189,6 @@ install_driver() { install -Dm644 "$driver_dep" "${wrkdir}${driver_dep}" done done - - # TODO implement monolithic kernel support - [ -e "${wrkdir}/lib/modules" ] || msg panic "failed to install drivers" } # install hostonly drivers