From b3d380b9c77e56a164b69fec3c82f06195600d2b Mon Sep 17 00:00:00 2001 From: ramon Date: Tue, 28 Jan 2014 12:19:28 +0000 Subject: [PATCH] =?UTF-8?q?#603:=20en=20el=20proceso=20de=20generaci=C3=B3?= =?UTF-8?q?n=20del=20ogLive=20en=20servidores=20con=20Ubuntu=2013.04=20y?= =?UTF-8?q?=20posterior,=20{{{udev}}}=20mantiene=20en=20uso=20el=20direcot?= =?UTF-8?q?rio=20donde=20se=20ha=20ejecutado=20{{{debootstrap}}}=20y=20es?= =?UTF-8?q?=20necesario=20matar=20el=20proceso=20antes=20de=20desmontar=20?= =?UTF-8?q?el=20directorio=20para=20poder=20usar=20{{{schroot}}}.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: https://opengnsys.es/svn/branches/version1.0@4121 a21b9725-9963-47de-94b9-378ad31fedc9 --- boottoolsgenerator.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/boottoolsgenerator.sh b/boottoolsgenerator.sh index b35fb36..790c14c 100755 --- a/boottoolsgenerator.sh +++ b/boottoolsgenerator.sh @@ -10,11 +10,8 @@ #@date 2011/08/03 #*/ - #mkdir -p /tmp/opengnsys_installer/opengnsys; - #mkdir -p /tmp/opengnsys_installer/opengnsys2; - #cp -prv /home/administrador/workspace/OpenGnsys/branches/version2/* /tmp/opengnsys_installer/opengnsys2/; - #cp -prv /home/administrador/workspace/OpenGnsys/branches/version1.0/client/ /tmp/opengnsys_installer/opengnsys/; -#find /tmp/opengnsys_installer/ -name .svn -type d -exec rm -fr {} \; 2>/dev/null; + #mkdir -p /tmp/opengnsys_installer/opengnsys + #svn export http://opengnsys.es/svn/branches/version1.0/client /tmp/opengnsys_installer/opengnsys #Variables @@ -47,7 +44,7 @@ btogGetOsInfo $TYPECLIENT ########################################################################## echo "FASE 2 - Instalación de software adicional." cat /etc/apt/sources.list | grep "http://free.nchc.org.tw/drbl-core" || echo "deb http://free.nchc.org.tw/drbl-core drbl stable " >> /etc/apt/sources.list -apt-get update; apt-get -y --force-yes install debootstrap subversion schroot squashfs-tools syslinux genisoimage gpxe qemu +apt-get update; apt-get -y --force-yes install debootstrap subversion schroot squashfs-tools syslinux genisoimage gpxe qemu lsof ###################################################################3 echo "FASE 3 - Creación del Sistema raiz RootFS (Segundo Sistema archivos (img)) " echo "Fase 3.1 Generar y formatear el disco virtual. Generar el dispositivo loop." @@ -71,7 +68,8 @@ cat /etc/schroot/schroot.conf | grep $BTROOTFSIMG || btogSetFsAccess echo "FASE 5 - Incorporando ficheros OpenGnSys el sistema raiz rootfs " cp -a ${BTSVNBOOTTOOLS}/includes/usr/bin/* /tmp chmod +x /tmp/boot-tools/*.sh -umount $BTROOTFSMNT 2>/dev/null +# 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 ############################################################################################ echo "FASE 6 - Instalar software"