diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2016-11-30 15:02:22 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2016-11-30 15:02:22 +0000 |
commit | 811f49541c839cffada80dab0162bd98f7259e47 (patch) | |
tree | 579a4564f7894941b646965ab96ea0c043f9445c | |
parent | c1061623c68ef96f882b3f45ae34ecf0be3d0fd0 (diff) |
fix dkms module autobuilding
-rwxr-xr-x | libvasile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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 |