summaryrefslogtreecommitdiffstats
path: root/client/boot-tools
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2016-04-20 15:37:42 +0000
committerramon <ramongomez@us.es>2016-04-20 15:37:42 +0000
commitc3adb456d250c47507cccb6b1c254c663bfb2a4d (patch)
tree7ce8f011188de62cec2a0ef0ae0b07cf7b0c2c57 /client/boot-tools
parent8a59a5f82affb6fe18086be4f16a907831e6bea3 (diff)
#724: Preparar la compilación de módulos adicionales del kernel que pueden quedarse pendientes tras la instalación de los paquetes de ogLive basado en Ubuntu 15.10 (como el módulo para ZFS).
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4889 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'client/boot-tools')
-rwxr-xr-xclient/boot-tools/includes/usr/bin/boot-tools/boottoolsSoftwareInstall.sh16
1 files changed, 15 insertions, 1 deletions
diff --git a/client/boot-tools/includes/usr/bin/boot-tools/boottoolsSoftwareInstall.sh b/client/boot-tools/includes/usr/bin/boot-tools/boottoolsSoftwareInstall.sh
index 70207cae..6a50b526 100755
--- a/client/boot-tools/includes/usr/bin/boot-tools/boottoolsSoftwareInstall.sh
+++ b/client/boot-tools/includes/usr/bin/boot-tools/boottoolsSoftwareInstall.sh
@@ -79,12 +79,26 @@ do
echo " : OK - Paquete instalado correctamente (codigo interno de apt-get $RETVAL)"
else
echo " : Error Paquete $package del grupo $group (codigo interno de apt-get $RETVAL) "
- echo "Pulse pause para continuar"
+ echo "Pulse [Intro] para continuar"
read
fi
done
done
+# Instalar módulos que algunos paquetes puedan tener pendientes de compilar.
+echo "Instalando módulos adicionales con DKMS"
+while read -e mod vers; do
+ echo -n "Intalando módulo $mod v$vers"
+ dkms install -m $mod -v $vers &>/dev/null
+ RETVAL=$?
+ if [ $RETVAL == 0 ]
+ echo " : OK - Módulo instalado correctamente (codigo interno de dkms $RETVAL)"
+ else
+ echo " : Error módulo $mod (codigo interno de dkms $RETVAL) "
+ echo "Pulse [Intro] para continuar"
+ read
+ fi
+done < <(dkms status 2>/dev/null | awk -F, '$3~/added/ {print $1,$2}')
#Activamos el hook del oginitrd.img
mv /etc/initramfs-tools/oghooks /etc/initramfs-tools/hooks/