diff options
-rwxr-xr-x | libvasile | 21 | ||||
-rwxr-xr-x | vasile | 3 |
2 files changed, 14 insertions, 10 deletions
@@ -38,6 +38,7 @@ export local chrootsrcmode="vasile --srcmode" export local isouser="root" export local isomainarch="x86_64" export local isobinmode="vasile --binmode" +export local isodkms="vasile --dkms" export local isokernelname="kernel-genkernel-"$isomainarch"-"$kernelver"" export local isoramfsname="initramfs-genkernel-"$isomainarch"-"$kernelver"" export local isoramfscmd="dracut -N -a dmsquash-live -a pollcdrom --force" @@ -115,6 +116,15 @@ chrootchecksum () { done } +dkmsmod () { + # build and install any 3rd party kernel modules using DKMS + 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 +} + # build functions chrootprepare () { @@ -247,18 +257,9 @@ isoservices () { done } -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 - done - fi -} - isomodules () { # build and install any 3rd party kernel modules using DKMS (virtualbox-guest in our case) - chroot "$isosynctarget" su - "$isouser" -c isodkms + chroot "$isosynctarget" su - "$isouser" -c "$isodkms" } isochroot () { @@ -34,6 +34,9 @@ case $1 in --srcmode) srcmode ;; + --dkms) + dkmsmod + ;; --help) showhelp ;; |