#460 ogLive usb cache
git-svn-id: https://opengnsys.es/svn/branches/version1.0@2456 a21b9725-9963-47de-94b9-378ad31fedc9remotes/github/master
parent
b4e1bf572e
commit
b151102e64
|
@ -108,6 +108,8 @@ ogConfigureRamfs ()
|
||||||
mkdir -p $OGLIVERAMFS
|
mkdir -p $OGLIVERAMFS
|
||||||
mkdir -p $OGLIVEROOTFS
|
mkdir -p $OGLIVEROOTFS
|
||||||
mkdir -p $OGLIVEUNIONFS
|
mkdir -p $OGLIVEUNIONFS
|
||||||
|
|
||||||
|
touch /etc/fstab
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -340,9 +342,11 @@ ogConnectOgLive ()
|
||||||
then
|
then
|
||||||
echo "Montar imagen del sistema root desde dispositivo local"
|
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
|
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 ]
|
if [ $? != 0 ]
|
||||||
then
|
then
|
||||||
|
# Si local es particion CACHE es identificada como CACHE
|
||||||
mount LABEL=CACHE $DSTOGLIVE
|
mount LABEL=CACHE $DSTOGLIVE
|
||||||
export LOCALMEDIA=CACHE
|
export LOCALMEDIA=CACHE
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue