summaryrefslogtreecommitdiff
path: root/libvasile
diff options
context:
space:
mode:
Diffstat (limited to 'libvasile')
-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