From c1061623c68ef96f882b3f45ae34ecf0be3d0fd0 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Tue, 29 Nov 2016 22:05:31 +0000 Subject: build 3rd party kernel modules using DKMS during iso creation (virtualbox-guest only in our case) --- libvasile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/libvasile b/libvasile index 2795f10..e1fda46 100755 --- a/libvasile +++ b/libvasile @@ -247,6 +247,15 @@ isoservices () { done } +isomodules () { + # build any 3rd party kernel modules using DKMS (virtualbox-guest in our case) + if [[ -x $(which dkms) ]] ; then + for i in $(dkms status | cut -d " " -f1,2 | sed -e 's/,//g' | sed -e 's/ /\//g' | sed -e 's/://g') ; do + dkms install $i + done + fi +} + isochroot () { # land into a chroot env into iso image core and make adjustments, if needed einfo "DROPPING YOU TO A ROOT SHELL INTO ISO ENVIRONMENT" @@ -289,11 +298,16 @@ prepareiso () { isostop mv ""$isorsynctarget"/root/core.img" "$isogrubdir" cp -avx ""$isorsynctarget"/usr/lib64/grub/i386-pc/lnxboot.img" "$isogrubdir" - # enable live iso image system services + # land into a chroot env into live environment to make adjustments, if needed isostart isousertree isochroot isostop + # build any 3rd party kernel modules using DKMS (virtualbox-guest in our case) + isostart + isomodules + isostop + # enable live iso image system services isostart isoservices isostop -- cgit v1.2.3