summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2016-11-29 22:05:31 +0000
committerV3n3RiX <venerix@redcorelinux.org>2016-11-29 22:05:31 +0000
commitc1061623c68ef96f882b3f45ae34ecf0be3d0fd0 (patch)
tree9049d64c728601badf2927811cc1b3e46291f65e
parent0634516f33d501f3095846a47e31ae11880f776b (diff)
build 3rd party kernel modules using DKMS during iso creation (virtualbox-guest only in our case)
-rwxr-xr-xlibvasile16
1 files changed, 15 insertions, 1 deletions
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