version1.0 #368 - Adaptando el antiguo ogclient a boot-tools

git-svn-id: https://opengnsys.es/svn/branches/version1.0@1854 a21b9725-9963-47de-94b9-378ad31fedc9
remotes/github/master
Antonio Doblas Viso 2011-04-14 14:22:52 +00:00
parent 7bf37b9cde
commit c1835c846c
9 changed files with 54 additions and 23 deletions

View File

@ -4,19 +4,20 @@
1. Comprobar la conexión a internet, sobre todo si usas proxy. El hecho de que te funcione apt-get no significa que tengas el proxy configurado.
1. Descargar del subversion la estrucutura del cliente.
# reubicacion al trunk/client/boot
# reubicacion al trunk/client/boot-tools
Proceso:
0. Si ya tenemos un /var/lib/tftpboot/ogclient lo renombramos por si acaso.
1. Descargar del subversion la rama ogClient.
3. Ejecutar el instalador:
URLSVNBASE="http://www.opengnsys.es/svn/branches/version1.0/client"
mv /opt/opengnsys/tftpboot/ogclient/ /opt/opengnsys/tftpboot/ogclientTrunk;
svn checkout http://www.opengnsys.es/svn/branches/ogClient /tmp/opengnsys_installer/opengnsys/installer/ogClient;
svn checkout http://www.opengnsys.es/svn/branches/version1.0/client/shared/ /tmp/opengnsys_installer/opengnsys/client/shared;
svn checkout http://www.opengnsys.es/svn/branches/version1.0/client/engine/ /tmp/opengnsys_installer/opengnsys/client/engine;
svn checkout ${URLSVNBASE}/boot-tools /tmp/opengnsys_installer/opengnsys/client/boot-tools;
svn checkout ${URLSVNBASE}/shared/ /tmp/opengnsys_installer/opengnsys/client/shared;
svn checkout ${URLSVNBASE}/engine/ /tmp/opengnsys_installer/opengnsys/client/engine;
find /tmp/opengnsys_installer/ -name .svn -type d -exec rm -fr {} \; 2>/dev/null;
/tmp/opengnsys_installer/opengnsys/installer/ogClient/ogClientGeneratorV2.sh;
/tmp/opengnsys_installer/opengnsys/client/boot-tools/ogClientGeneratorV2.sh;

View File

@ -49,7 +49,7 @@ copy_exec /sbin/mount.cifs
#mkdir -p ${DESTDIR}/opt/opengnsys/lib/engine
#cp -prv /opt/opengnsys/client/lib/engine ${DESTDIR}/opt/opengnsys/lib/engine
rm -fr ${DESTDIR}/lib/modules/2.6.32-21-generic-pae/kernel/drivers/net/atl*
#rm -fr ${DESTDIR}/lib/modules/2.6.32-21-generic-pae/kernel/drivers/net/atl*
manual_add_modules cifs
manual_add_modules smbfs
manual_add_modules atl1e

View File

@ -41,9 +41,12 @@ mountroot ()
. /scripts/functions
. /scripts/ogfunctions
sleep 2
[ "$ogdebug" == "true" ] && ogYesNo --timeout 5 --default no "Stop before get OG variables: y/N "
[ $? == 0 ] && sh || echo " "
set -a
log_success_msg "Checking kernel parameters"
ogExportKernelParameters

View File

@ -7,7 +7,7 @@
#::askfirst:/bin/sh
# Start an "askfirst" shell on /dev/tty2-4
#tty1::respawn:/sbin/getty 38400 tty1
tty1::respawn:/opt/opengnsys/etc/preinit/defaultTESTING.sh
tty1::respawn:/opt/opengnsys/etc/preinit/default.sh
tty2::respawn:/sbin/getty 38400 tty2
tty3::respawn:/sbin/getty 38400 tty3
tty4::respawn:/sbin/getty 38400 tty4

View File

@ -57,6 +57,9 @@ if [ -d $OPENGNSYS ]; then
source $i
done
fi
source /tmp/net-eth* 2>/dev/null
# Añadir dependencia de arquitectura
ARCH=$(ogGetArch)
if [ -n "$ARCH" ]; then

View File

@ -2,28 +2,45 @@
KERNEL ogclient/ogvmlinuz
initrd=ogclient/oginitrd.img
### PARAMETROS ESTANDAR DEl KERNEL
## indicamos al kernel que proceso a iniciar el Opengnsys
boot=oginit
oginit=init|/bin/bash
ogrepo=ip del repositorio
og2nd=sqfs|img
ogprotocol=smb|nfs
ogactiveadmin=true|false
ogdebug=true|false
vga=788
irqpoll
acpi=on
ip=dhcp
ip=
### PARAMETROS ESPECIFICOS DE OG.
# Indicamos al cliente OG, cuando termine su proceso que incie el init (/opt/opengnsys/etc/preinit/default.sh)
# si no se utiliza este parametro por defecto usa init.
oginit=init|/bin/bash
#por defecto todos los servicios OG, los considera ubicados en el next-server (parámetro indicado en el servicio dhcp)
# en el caso de que queramos que indicar que REPO (/opt/opengnsys/images) está en otro equipo utilizar este parámetro ogrepo
ogrepo=ip del repositorio
# fichero donde se encuentra el rootfs que usara el ogvmlinuz y el oginitrd.img
# hay dos formatos, el img (fichero modificable desde el OG server), o el sqfs (fichero solo lectura del img)
og2nd=sqfs|img
#protocolo de acceso al og2nd.
ogprotocol=smb|nfs
# modo de funcionalidad del browser con shell root activa.
ogactiveadmin=true|false
#modo de depuración en el proceso de arranque del cliente.
ogdebug=true|false
#modulo especial de la tarjeta de red.
ognetmodule
FIXME: en la version actual
repo=iprepoman
IP
TODO: en la proxima version
ogrepo
ip

View File

@ -156,7 +156,7 @@ ogClient2ndSqfs
##################### FASE 9. algunos detallas del pxe
#dejamos ficheros de ejemplo para el pxe y el nfs
ogClientConfpxe
#ogClientConfpxe
##################### FIN FASE 9. algunos detallas del pxe

View File

@ -1,7 +1,7 @@
ogClientVar()
{
export SVNCLIENTDIR=/tmp/opengnsys_installer/opengnsys/installer/ogClient
export SVNCLIENTDIR=/tmp/opengnsys_installer/opengnsys/client/boot-tools
export SVNCLIENTSTRUCTURE=/tmp/opengnsys_installer/opengnsys/client/shared
export SVNCLIENTENGINE=/tmp/opengnsys_installer/opengnsys/client/engine
@ -232,9 +232,16 @@ cp -pr ${SVNCLIENTSTRUCTURE}/lib/fonts $OGCLIENTMOUNT/usr/local/lib/fonts
mkdir -p $OGCLIENTMOUNT/usr/local/Trolltech/QtEmbedded-4.5.1/lib/
mkdir -p $OGCLIENTMOUNT/usr/local/QtEmbedded-4.6.2/lib/
mkdir -p $OGCLIENTMOUNT/usr/local/QtEmbedded-4.6.3/lib/
ln -fs $OGCLIENTMOUNT/usr/local/lib/fonts /usr/local/Trolltech/QtEmbedded-4.5.1/lib/fonts
ln -fs $OGCLIENTMOUNT/usr/local/lib/fonts /usr/local/QtEmbedded-4.6.2/lib/fonts
ln -fs $OGCLIENTMOUNT/usr/local/lib/fonts /usr/local/QtEmbedded-4.6.3/lib/fonts
#ln -fs $OGCLIENTMOUNT/usr/local/lib/fonts /usr/local/Trolltech/QtEmbedded-4.5.1/lib/fonts
#ln -fs $OGCLIENTMOUNT/usr/local/lib/fonts /usr/local/QtEmbedded-4.6.2/lib/fonts
#ln -fs $OGCLIENTMOUNT/usr/local/lib/fonts /usr/local/QtEmbedded-4.6.3/lib/fonts
cp -pr ${SVNCLIENTSTRUCTURE}/lib/fonts $OGCLIENTMOUNT/usr/local/Trolltech/QtEmbedded-4.5.1/lib/fonts
cp -pr ${SVNCLIENTSTRUCTURE}/lib/fonts $OGCLIENTMOUNT/usr/local/QtEmbedded-4.6.2/lib/fonts
cp -pr ${SVNCLIENTSTRUCTURE}/lib/fonts $OGCLIENTMOUNT/usr/local/QtEmbedded-4.6.3/lib/fonts
if [ $? -ne 0 ]
then
errorAndLog "$FUNCNAME(): Linking Browser fonts : ERROR"