#768 #528 Multiples ogLives en la CACHE. Los componentes del ogLive están todos dentro de un solo directorio, identificado con su nombre y versión. En el servidor están en tftpboot/ogLivexxx y en la cache se almacenarán en /boot/ogLiveXXX

El tftp del busybox permite acceder a subdirectorios del recurso tftp.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@5326 a21b9725-9963-47de-94b9-378ad31fedc9
remotes/github/master
Antonio Doblas Viso 2017-05-31 13:05:27 +00:00
parent 52bf021855
commit 13c2ca1f48
1 changed files with 8 additions and 5 deletions

View File

@ -365,9 +365,12 @@ ogGetROOTSERVER ()
#@version 0.9 #@version 0.9
#@author Antonio J. Doblas. Universidad de Malaga. #@author Antonio J. Doblas. Universidad de Malaga.
#@date 2011/05/24 #@date 2011/05/24
#@author Irina Gómez. ETSII Universidad de Sevilla
#@version 1.1.0 - Permite varios ogLive dentro de subdirectorios #@version 1.1.0 - Permite varios ogLive dentro de subdirectorios
#@author Irina Gómez. ETSII Universidad de Sevilla
#@date 2017/04/27 #@date 2017/04/27
#@version 1.1.0 - Se permite varios ogLives en la CACHE
#@author Antonio J. Doblas Viso. Universidad de Malaga
#@date 2017/05/31
#*/ ## #*/ ##
ogUpdateInitrd () ogUpdateInitrd ()
@ -380,7 +383,7 @@ ogUpdateInitrd ()
# Salir si no se detecta caché. # Salir si no se detecta caché.
[ -z "$TYPE" ] && return [ -z "$TYPE" ] && return
mount -t $TYPE LABEL=CACHE /tmp/cache || return mount -t $TYPE LABEL=CACHE /tmp/cache || return
mkdir -p /tmp/cache/boot mkdir -p /tmp/cache/boot/$OGLIVEDIR
# comparamos los del server # comparamos los del server
@ -391,13 +394,13 @@ ogUpdateInitrd ()
#comparamos los de la cache #comparamos los de la cache
CACHEVMLINUZ=`cat /tmp/cache/boot/ogvmlinuz.sum` CACHEVMLINUZ=`cat /tmp/cache/boot/$OGLIVEDIR/ogvmlinuz.sum`
CACHEINITRD=`cat /tmp/cache/boot/oginitrd.img.sum` CACHEINITRD=`cat /tmp/cache/boot/$OGLIVEDIR/oginitrd.img.sum`
echo "MD5 on SERVER: $SERVERVMLINUZ $SERVERINITRD" echo "MD5 on SERVER: $SERVERVMLINUZ $SERVERINITRD"
echo "MD5 on CACHE: $CACHEVMLINUZ $CACHEINITRD" echo "MD5 on CACHE: $CACHEVMLINUZ $CACHEINITRD"
cd /tmp/cache/boot cd /tmp/cache/boot/$OGLIVEDIR || mkdir -p /tmp/cache/boot/$OGLIVEDIR
if [ "$CACHEVMLINUZ" != "$SERVERVMLINUZ" ] if [ "$CACHEVMLINUZ" != "$SERVERVMLINUZ" ]
then then