summaryrefslogtreecommitdiff
path: root/libvasile
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2016-11-30 15:02:22 +0000
committerV3n3RiX <venerix@redcorelinux.org>2016-11-30 15:02:22 +0000
commit811f49541c839cffada80dab0162bd98f7259e47 (patch)
tree579a4564f7894941b646965ab96ea0c043f9445c /libvasile
parentc1061623c68ef96f882b3f45ae34ecf0be3d0fd0 (diff)
fix dkms module autobuilding
Diffstat (limited to 'libvasile')
-rwxr-xr-xlibvasile11
1 files changed, 8 insertions, 3 deletions
diff --git a/libvasile b/libvasile
index e1fda46..2eb92e5 100755
--- a/libvasile
+++ b/libvasile
@@ -247,8 +247,8 @@ isoservices () {
done
}
-isomodules () {
- # build any 3rd party kernel modules using DKMS (virtualbox-guest in our case)
+isodkms () {
+ # prepare 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
@@ -256,6 +256,11 @@ isomodules () {
fi
}
+isomodules () {
+ # build and install any 3rd party kernel modules using DKMS (virtualbox-guest in our case)
+ chroot "$isosynctarget" su - "$isouser" -c isodkms
+}
+
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"
@@ -303,7 +308,7 @@ prepareiso () {
isousertree
isochroot
isostop
- # build any 3rd party kernel modules using DKMS (virtualbox-guest in our case)
+ # build and install any 3rd party kernel modules using DKMS (virtualbox-guest in our case)
isostart
isomodules
isostop