#724: Generación de ogLive: limpiar código antiguo, eliminar ficheros no usados, usar nuevo nombre del proyecto e incluir número de revisión.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4916 a21b9725-9963-47de-94b9-378ad31fedc9master
parent
8212e10cc7
commit
42b1b74374
|
@ -4,7 +4,7 @@
|
|||
#@brief Librería o clase Boot-Tools
|
||||
#@class Boot-Tools
|
||||
#@brief Funciones para generar un sistema operativo cliente para opengnsys
|
||||
#@version 1.0.5
|
||||
#@version 1.1.0
|
||||
#@warning License: GNU GPLv3+
|
||||
#*/
|
||||
|
||||
|
@ -93,7 +93,7 @@ case "${1,,}" in
|
|||
wily) # ogLive 1.1.0-rc1 basado en Ubuntu 15.10.
|
||||
OSDISTRIB="ubuntu"
|
||||
OSCODENAME="wily"
|
||||
OSRELEASE="4.2.0-16-generic"
|
||||
OSRELEASE="4.2.0-35-generic"
|
||||
OSARCH="i386"
|
||||
OSHTTP="http://es.archive.ubuntu.com/ubuntu/"
|
||||
;;
|
||||
|
@ -113,7 +113,6 @@ NAMEHOSTCLIENT="$VERSIONBOOTTOOLS-$OSCODENAME-$VERSIONSVN"
|
|||
export OSDISTRIB OSCODENAME OSRELEASE OSARCH OSHTTP
|
||||
export TYPECLIENT VERSIONSVN NAMEISOCLIENT NAMEHOSTCLIENT
|
||||
### El fichero de configuración debe sustituir a estos 3 ficheros (borrar las 3 líneas siguientes).
|
||||
echo "$VERSIONSVN" > /tmp/versionsvn.txt
|
||||
echo "$NAMEISOCLIENT" > /tmp/opengnsys_info_rootfs
|
||||
echo "$NAMEHOSTCLIENT" > /tmp/opengnsys_chroot
|
||||
# Generar fichero de configuración.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
#@file boottoolsgenerator.sh
|
||||
#@brief Script generación del sistema opertativo cliente OpenGnSys
|
||||
#@brief Script generación del sistema opertativo cliente OpenGnsys
|
||||
#@warning
|
||||
#@version 0.9 - Prototipo de sistema operativo multiarranque de opengnsys.
|
||||
#@author Antonio J. Doblas Viso. Universidad de Malaga.
|
||||
|
@ -11,7 +11,7 @@
|
|||
#*/
|
||||
|
||||
#mkdir -p /tmp/opengnsys_installer/opengnsys
|
||||
#svn export http://opengnsys.es/svn/branches/version1.0/client /tmp/opengnsys_installer/opengnsys
|
||||
#svn export http://opengnsys.es/svn/branches/version1.1/client /tmp/opengnsys_installer/opengnsys
|
||||
|
||||
|
||||
#Variables
|
||||
|
@ -42,7 +42,7 @@ source $PROGRAMDIR/boottoolsfunctions.lib
|
|||
echo "FASE 1 - Asignación de variables"
|
||||
#obtenemos las variables necesarias y la información del host.
|
||||
btogGetVar
|
||||
echoAndLog "OpenGnSys CLIENT installation begins at $(date)"
|
||||
echoAndLog "OpenGnsys CLIENT installation begins at $(date)"
|
||||
btogGetOsInfo $TYPECLIENT
|
||||
##########################################################################
|
||||
echo "FASE 2 - Instalación de software adicional."
|
||||
|
@ -68,9 +68,11 @@ fi
|
|||
echo "FASE 4 - Configurar acceso schroot al Segundo Sistema de archivos (img)"
|
||||
cat /etc/schroot/schroot.conf | grep $BTROOTFSIMG || btogSetFsAccess
|
||||
###########################################################################
|
||||
echo "FASE 5 - Incorporando ficheros OpenGnSys el sistema raiz rootfs "
|
||||
echo "FASE 5 - Incorporando ficheros OpenGnsys al sistema raíz rootfs "
|
||||
cp -a ${BTSVNBOOTTOOLS}/includes/usr/bin/* /tmp
|
||||
chmod +x /tmp/boot-tools/*.sh
|
||||
# Incluir revisión.
|
||||
sed -i "1 s/$/ $VERSIONSVN/" ${BTSVNBOOTTOOLS}/includes/etc/initramfs-tools/scripts/VERSION.txt
|
||||
# En Ubuntu 13.04+ es necesario matar proceso de "udev" antes de desmontar.
|
||||
umount $BTROOTFSMNT 2>/dev/null || (kill -9 $(lsof -t $BTROOTFSMNT); umount $BTROOTFSMNT 2>/dev/null)
|
||||
schroot -p -c IMGogclient -- /tmp/boot-tools/boottoolsFsOpengnsys.sh
|
||||
|
@ -112,5 +114,5 @@ echo "Fase 8.3 Generar la ISO"
|
|||
btogIsoGenerator
|
||||
######################################################################3
|
||||
########################################################################
|
||||
echoAndLog "OpenGnSys installation finished at $(date)"
|
||||
echoAndLog "OpenGnsys installation finished at $(date)"
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#/**
|
||||
#@file ogfunctions.lib
|
||||
#@brief Librería o clase para la gestion del sistema operativo de los clientes OpenGnSys.
|
||||
#@brief Librería o clase para la gestion del sistema operativo de los clientes OpenGnsys.
|
||||
#@class client
|
||||
#@version 1.1.0
|
||||
#@warning License: GNU GPLv3+
|
||||
|
|
|
@ -1,14 +1,5 @@
|
|||
#!/bin/bash
|
||||
#TODO Comprobar si esta los source.
|
||||
|
||||
#svn checkout http://www.opengnsys.es/svn/branches/version1.0/client /tmp/opengnsys_installer/opengnsys/client/;
|
||||
#svn checkout http://www.opengnsys.es/svn/branches/version2/ /tmp/opengnsys_installer/opengnsys2
|
||||
#find /tmp/opengnsys_installer/ -name .svn -type d -exec rm -fr {} \; 2>/dev/null;
|
||||
#apt-get -y --force-yes install subversion
|
||||
#export SVNURL="http://opengnsys.es/svn/branches/version1.0/client/"
|
||||
#VERSIONSVN=$(LANG=C svn info $SVNURL | awk '/Revision:/ {print "r"$2}')
|
||||
|
||||
#VERSIONSVN=$(cat /tmp/versionsvn.txt)
|
||||
VERSIONBOOTTOOLS="ogLive"
|
||||
|
||||
NAMEISOCLIENTFILE="/tmp/opengnsys_info_rootfs"
|
||||
|
|
|
@ -26,36 +26,11 @@ which ms-sys || ms-sys install &>/dev/null
|
|||
echo "spartlnx"
|
||||
which spartlnx.run || $(wget http://damien.guibouret.free.fr/savepart.zip &>/dev/null; unzip -o savepart.zip -d /sbin/)
|
||||
|
||||
#echo "xvesa"
|
||||
gdebi -n /var/cache/apt/archivesOG/xvesa.deb
|
||||
|
||||
#echo "partclone"
|
||||
#gdebi -n /var/cache/apt/archivesOG/partclone_0.2.38_i386.deb
|
||||
|
||||
#echo "comenzamos con el busybox"
|
||||
#echo "busybox-static 1.17.1 en rootfs"
|
||||
apt-get remove -y busybox-static
|
||||
gdebi -n /var/cache/apt/archivesOG/busybox-static_1.17.1-10ubuntu1_i386.deb
|
||||
cp /bin/busybox /bin/busyboxOLD
|
||||
/bin/busyboxOLD
|
||||
echo "busybox-static 1.18.5 en initrd"
|
||||
echo "busybox"
|
||||
apt-get install -y busybox-static
|
||||
cp /bin/busybox /bin/busyboxNEW
|
||||
/bin/busyboxNEW
|
||||
echo " en scripts reboot y poweroff hacer llamada a busyboxOLD reboot|poweroff "
|
||||
|
||||
|
||||
#gpt
|
||||
#echo "gptfdisk"
|
||||
#apt-get install -y uuid-dev libicu-dev libpopt-dev libpopt0 ncurses-base libncurses5-dev
|
||||
#wget -O download.tgz http://sourceforge.net/projects/gptfdisk/files/gptfdisk/0.8.5/gptfdisk-0.8.5.tar.gz/download -O gptfdisk-0.8.5.tar.gz
|
||||
#tar xzvf gptfdisk-0.8.5.tar.gz
|
||||
#cd gptfdisk-0.8.5
|
||||
#make
|
||||
#cp -va sgdisk gdisk fixparts cgdisk /sbin
|
||||
#cd ..
|
||||
#rm -fr gptfdisk-0.8.5*
|
||||
|
||||
# Mach-O loader for Linux
|
||||
echo "maloader"
|
||||
wget https://github.com/shinh/maloader/archive/master.zip
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue