Changes between Initial Version and Version 1 of ClienteInitrdDSModificarINITRD


Ignore:
Timestamp:
Jul 4, 2012, 3:10:17 PM (12 years ago)
Author:
adv
Comment:

info ogLive modificacion procesos initrd

Legend:

Unmodified
Added
Removed
Modified
  • ClienteInitrdDSModificarINITRD

    v1 v1  
     1copy & paste
     2
     3{{{
     4echo "inicio copia de seguridad";
     5OPENGNSYS=${OPENGNSYS:-"/opt/opengnsys"};
     6TFTPDIR=$OPENGNSYS/tftpboot;
     7CLIENTINITRD=$TFTPDIR/ogclient/oginitrd.img;
     8TMPDIR=/tmp/ogclient;
     9cp /opt/opengnsys/tftpboot/oginitrd.img /opt/opengnsys/tftpboot/oginitrd.img.ORIGINAL;
     10cp /opt/opengnsys/tftpboot/oginitrd.img.sum /opt/opengnsys/tftpboot/oginitrd.img.sum.ORIGINAL;
     11cp /opt/opengnsys/tftpboot/ogclient/oginitrd.img /opt/opengnsys/tftpboot/ogclient/oginitrd.img.ORIGINAL;
     12cp /opt/opengnsys/tftpboot/ogclient/oginitrd.img.sum /opt/opengnsys/tftpboot/ogclient/oginitrd.img.ORIGINAL.sum;
     13echo "fin copia de seguridad";
     14}}}
     15
     16{{{
     17echo "inicio descompresión del initrd";
     18OPENGNSYS=${OPENGNSYS:-"/opt/opengnsys"};
     19TFTPDIR=$OPENGNSYS/tftpboot;
     20CLIENTINITRD=$TFTPDIR/ogclient/oginitrd.img;
     21TMPDIR=/tmp/ogclient;
     22mkdir -p $TMPDIR;
     23cd $TMPDIR;
     24gzip -dc $CLIENTINITRD | cpio -im;
     25echo "El initrd abierto y accesible en $TMPDIR/scripts/{oginit ogfunctions}";
     26}}}
     27
     28Ejemplo de modificación para solucionar la configuración de red
     29{{{
     30#echo el scripts principal oginit
     31#linea
     3273 ogConfigureNetworking ||  ogConfigureNetworking
     33while !(ping -c1 172.17.9.19 &> /dev/null)
     34do
     35        ogConfigureNetworking
     36done
     37
     38# funicones usadas por oginit en ogfunctions
     39}}}
     40
     41{{{
     42echo "inicio compresión del intird.";
     43OPENGNSYS=${OPENGNSYS:-"/opt/opengnsys"};
     44TFTPDIR=$OPENGNSYS/tftpboot;
     45CLIENTINITRD=$TFTPDIR/ogclient/oginitrd.img;
     46TMPDIR=/tmp/ogclient;
     47cd $TMPDIR;
     48find . | cpio -H newc -oa | gzip -9c > $CLIENTINITRD;
     49md5sum $CLIENTINITRD | cut -f1 -d" " > $CLIENTINITRD.sum;
     50echo "fin compresión del intird.";
     51}}}
     52
     53
     54{{{
     55echo "inicio publicación nuevo intird.";
     56OPENGNSYS=${OPENGNSYS:-"/opt/opengnsys"};
     57TFTPDIR=$OPENGNSYS/tftpboot;
     58CLIENTINITRD=$TFTPDIR/ogclient/oginitrd.img;
     59TMPDIR=/tmp/ogclient;
     60cp -a $CLIENTINITRD $TFTPDIR
     61cp -a $CLIENTINITRD.sum $TFTPDIR
     62echo "fin publicación nuevo  intird.";
     63}}}