#573: Proceso de instalación del Kernel 3.7.6 durante la generación del cliente basado en Ubuntu 12.10.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@3648 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/master
parent
02831c479e
commit
c2839fa742
|
@ -4,7 +4,7 @@
|
||||||
#@brief Librería o clase Boot-Tools
|
#@brief Librería o clase Boot-Tools
|
||||||
#@class Boot-Tools
|
#@class Boot-Tools
|
||||||
#@brief Funciones para generar un sistema operativo cliente para opengnsys
|
#@brief Funciones para generar un sistema operativo cliente para opengnsys
|
||||||
#@version 0.9
|
#@version 1.0.5
|
||||||
#@warning License: GNU GPLv3+
|
#@warning License: GNU GPLv3+
|
||||||
#*/
|
#*/
|
||||||
|
|
||||||
|
@ -40,6 +40,9 @@ export VERSIONBOOTTOOLS="ogLive"
|
||||||
#@version 1.0 - Compatibilidad OpengGnsys X.
|
#@version 1.0 - Compatibilidad OpengGnsys X.
|
||||||
#@author Antonio J. Doblas Viso. Universidad de Malaga.
|
#@author Antonio J. Doblas Viso. Universidad de Malaga.
|
||||||
#@date 2011/08/03
|
#@date 2011/08/03
|
||||||
|
#@version 1.0.5 - Fichero general de configuración, Kernel 3.7 para Ubuntu 12.10.
|
||||||
|
#@author Ramón Gómez, ETSII Univ. Sevilla
|
||||||
|
#@date 2013/02/06
|
||||||
function btogGetOsInfo ()
|
function btogGetOsInfo ()
|
||||||
{
|
{
|
||||||
OGCLIENTCFG=/tmp/ogclient.cfg
|
OGCLIENTCFG=/tmp/ogclient.cfg
|
||||||
|
@ -58,6 +61,13 @@ case "${1,,}" in
|
||||||
OSARCH="i386"
|
OSARCH="i386"
|
||||||
OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
|
OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
|
||||||
;;
|
;;
|
||||||
|
quantal)
|
||||||
|
OSDISTRIB="ubuntu"
|
||||||
|
OSCODENAME="quantal"
|
||||||
|
OSRELEASE="3.7.6-030706-generic"
|
||||||
|
OSARCH="i386"
|
||||||
|
OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
|
||||||
|
;;
|
||||||
host | *)
|
host | *)
|
||||||
OSDISTRIB=$(lsb_release -is)
|
OSDISTRIB=$(lsb_release -is)
|
||||||
OSCODENAME=$(lsb_release -cs)
|
OSCODENAME=$(lsb_release -cs)
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
# Script de instalación de paquetes de software.
|
||||||
|
|
||||||
export LANGUAGE=C
|
export LANGUAGE=C
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
export LANG=C
|
export LANG=C
|
||||||
|
@ -15,6 +17,7 @@ ln -s /bin/true /sbin/initctl
|
||||||
#Limpiamos y actualizamos los repositorios apt
|
#Limpiamos y actualizamos los repositorios apt
|
||||||
apt-get clean
|
apt-get clean
|
||||||
apt-get update
|
apt-get update
|
||||||
|
apt-get upgrade -y
|
||||||
|
|
||||||
#Desactivamos el hook del oginitrd.img para evitar problemas, al final de este escripts se activará
|
#Desactivamos el hook del oginitrd.img para evitar problemas, al final de este escripts se activará
|
||||||
mv /etc/initramfs-tools/hooks/oghooks /etc/initramfs-tools/
|
mv /etc/initramfs-tools/hooks/oghooks /etc/initramfs-tools/
|
||||||
|
@ -22,21 +25,36 @@ mv /etc/initramfs-tools/hooks/oghooks /etc/initramfs-tools/
|
||||||
# Preparamos el mtab necesario para la instalacion correcta de paquetes.
|
# Preparamos el mtab necesario para la instalacion correcta de paquetes.
|
||||||
echo "/dev/sda1 / ext4 rw,errors=remount-ro 0 0" > /etc/mtab
|
echo "/dev/sda1 / ext4 rw,errors=remount-ro 0 0" > /etc/mtab
|
||||||
|
|
||||||
|
|
||||||
# Instalamos el kernel.
|
# Instalamos el kernel.
|
||||||
# Deteccion de la versión y kernel a usar
|
# Deteccion de la versión y kernel a usar
|
||||||
export OSDISTRIB=$(lsb_release -i | awk -F: '{sub(/\t/,""); print $2}') 2>/dev/null
|
OGCLIENTCFG=${OGCLIENTCFG:-/tmp/ogclient.cfg}
|
||||||
export OSCODENAME=$(cat /etc/lsb-release | grep CODENAME | awk -F= '{print $NF}')
|
[ -f $OGCLIENTCFG ] && source $OGCLIENTCFG
|
||||||
export OSRELEASE=$(uname -a | awk '{print $3}')
|
OSRELEASE=${OSRELEASE:-$(uname -a | awk '{print $3}')}
|
||||||
uname -a | grep x86_64 > /dev/null && export OSARCH=amd64 || export OSARCH=i386
|
if [ -z "$OSARCH" ]; then
|
||||||
export OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
|
uname -a | grep x86_64 > /dev/null && OSARCH="amd64" || OSARCH="i386"
|
||||||
|
fi
|
||||||
# inicio de la instalacion
|
# inicio de la instalacion
|
||||||
|
if [ "$OSRELEASE" == "3.7.6-030706-generic" ]; then
|
||||||
|
# Descargar e instalar Kernel 3.7.
|
||||||
|
mkdir -p /tmp/kernel
|
||||||
|
pushd /tmp/kernel
|
||||||
|
apt-get -y --force-yes install wget crda libnl-3-200 libnl-genl-3-200 wireless-regdb
|
||||||
|
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.7.6-raring/linux-image-3.7.6-030706-generic_3.7.6-030706.201302040006_$OSARCH.deb
|
||||||
|
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.7.6-raring/linux-image-extra-3.7.6-030706-generic_3.7.6-030706.201302040006_$OSARCH.deb
|
||||||
|
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.7.6-raring/linux-headers-3.7.6-030706-generic_3.7.6-030706.201302040006_$OSARCH.deb
|
||||||
|
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.7.6-raring/linux-headers-3.7.6-030706_3.7.6-030706.201302040006_all.deb
|
||||||
|
dpkg -i *.deb
|
||||||
|
popd
|
||||||
|
rm -fr /tmp/kernel
|
||||||
|
else
|
||||||
|
# Instalar Kernel del repositorio de paquetes.
|
||||||
apt-get -y --force-yes install linux-image-${OSRELEASE} linux-headers-${OSRELEASE} linux-image-$RELEASE
|
apt-get -y --force-yes install linux-image-${OSRELEASE} linux-headers-${OSRELEASE} linux-image-$RELEASE
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#Eliminamos cualquier busybox previo: antes del busybox
|
#Eliminamos cualquier busybox previo: antes del busybox
|
||||||
apt-get -y --force-yes remove busybox
|
#apt-get -y --force-yes remove busybox
|
||||||
apt-get -y --force-yes remove busybox-static
|
#apt-get -y --force-yes remove busybox-static
|
||||||
|
|
||||||
#estos paquetes ofrecen interaccion.
|
#estos paquetes ofrecen interaccion.
|
||||||
# si es actualización, ya existe el fichero /etc/ssh/ssh_config
|
# si es actualización, ya existe el fichero /etc/ssh/ssh_config
|
||||||
|
@ -80,6 +98,7 @@ echo " " > /etc/mtab
|
||||||
#localepurge
|
#localepurge
|
||||||
#rm /var/lib/dbus/machine-id; rm /sbin/initctl; dpkg-divert --rename --remove /sbin/initctl;
|
#rm /var/lib/dbus/machine-id; rm /sbin/initctl; dpkg-divert --rename --remove /sbin/initctl;
|
||||||
#FIN ADV
|
#FIN ADV
|
||||||
|
|
||||||
apt-get clean
|
apt-get clean
|
||||||
apt-get autoclean
|
apt-get autoclean
|
||||||
apt-get autoremove
|
apt-get autoremove
|
||||||
|
|
|
@ -9,3 +9,5 @@ install gparted
|
||||||
#xvesa en compilacion
|
#xvesa en compilacion
|
||||||
install openbox
|
install openbox
|
||||||
install midori
|
install midori
|
||||||
|
# VESA Kernel 3.7
|
||||||
|
install v86d
|
||||||
|
|
Loading…
Reference in New Issue