From b151102e649ab9dcbd2c3e38b71e256447f840a5 Mon Sep 17 00:00:00 2001 From: adv Date: Sun, 22 Jan 2012 20:08:48 +0000 Subject: [PATCH] #460 ogLive usb cache git-svn-id: https://opengnsys.es/svn/branches/version1.0@2456 a21b9725-9963-47de-94b9-378ad31fedc9 --- includes/etc/initramfs-tools/scripts/ogfunctions | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/etc/initramfs-tools/scripts/ogfunctions b/includes/etc/initramfs-tools/scripts/ogfunctions index 17130d3..35b24f9 100644 --- a/includes/etc/initramfs-tools/scripts/ogfunctions +++ b/includes/etc/initramfs-tools/scripts/ogfunctions @@ -108,6 +108,8 @@ ogConfigureRamfs () mkdir -p $OGLIVERAMFS mkdir -p $OGLIVEROOTFS mkdir -p $OGLIVEUNIONFS + + touch /etc/fstab } @@ -340,9 +342,11 @@ ogConnectOgLive () then echo "Montar imagen del sistema root desde dispositivo local" for i in $(blkid /dev/s* | grep $OGLIVELABEL | awk -F: '{print $2}' | tr -d \"); do export $i; done - mount -t $TYPE LABEL=$LABEL $DSTOGLIVE + # si local usb| cd con partcion es identificada como label $OGLIVELABEL + mount -t $TYPE LABEL=$OGLIVELABEL $DSTOGLIVE if [ $? != 0 ] then + # Si local es particion CACHE es identificada como CACHE mount LABEL=CACHE $DSTOGLIVE export LOCALMEDIA=CACHE fi