In data lunedì 2 agosto 2010 10:45:21, Luigi Capriotti ha scritto:

I'll paste relevant lines there for convenience:

> http://live.debian.net/gitweb?p=live-boot.git;a=blob;f=scripts/live;h=a17eb
> 423fca132f0aaf03c8ca6f956766eaef797;hb=HEAD#l1052

echo "export ${snap_type}SNAP="/cow${snap_mount#$rootmnt}":${snapdev}:
${snapfile}" >> /etc/live.conf # for resync on reboot/halt

where snap_type is 

> and parsed with:
 
> http://live.debian.net/gitweb?p=live-boot.git;a=blob;f=bin/live-snapshot;h=
> 08e5fd654adf08609dc9d7a411da83fc58b3f3a1;hb=HEAD#l245

SNAP_COW=$(echo "${SNAP_RESYNC_STRING}" | sed -e 's|
^/root\([^:.]*\).*$|'"${DEF_SNAP_COW}"'\1|')
SNAP_DEV=$(echo "${SNAP_RESYNC_STRING}" | cut -f2 -d ':')
SNAP_MNT=$(echo "${SNAP_RESYNC_STRING}" | cut -f3 -d ':')

${snap_mount#$rootmnt} should then be either "/root/" or "/root/home"


-- 
ESC:wq

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




--
To UNSUBSCRIBE, email to debian-live-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201008021058.27707.amado...@vdavda.com

Reply via email to