/[clonezilla-sysresccd]/trunk/create-clonezilla-sysresccd/create-clonezilla-sysresccd.sh
ViewVC logotype

Diff of /trunk/create-clonezilla-sysresccd/create-clonezilla-sysresccd.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 63 by sng, Wed May 26 20:30:21 2010 UTC revision 68 by sng, Sun May 30 20:11:06 2010 UTC
# Line 416  if [ -n "$auto" ];then Line 416  if [ -n "$auto" ];then
416      echo '  Error: Parameter -a used without -p'      echo '  Error: Parameter -a used without -p'
417                  exit 1                  exit 1
418          fi          fi
419    if [ -n "$onlyBurnISO" ];then    if [ "$onlyBurnISO" -eq 1 ];then
420      echo "  Error: Conflicting parameters -a and -b used"      echo "  Error: Conflicting parameters -a and -b used"
421                  exit 1                  exit 1
422          fi          fi
# Line 580  Is this correct? (y/[n]): " Line 580  Is this correct? (y/[n]): "
580    WHERE="$(pwd)"    WHERE="$(pwd)"
581    mkdir /root/tmp/clonezilla-sysresccd/restorecd 2>/dev/null    mkdir /root/tmp/clonezilla-sysresccd/restorecd 2>/dev/null
582    cd /root/.clonezilla-sysresccd/files    cd /root/.clonezilla-sysresccd/files
583    cp -L pre* ocs-iso what-cd continue-multi-cd isolinux-restore-cd.cfg \    cp -L pre* ocs-iso what-cd patch-clonezilla-sysresccd continue-multi-cd isolinux-restore-cd.cfg \
584      isolinux-restore-cd-ram.cfg menu-iso.tar.gz doc.tar.gz imginfo imgconvert cust-menu /root/tmp/clonezilla-sysresccd/restorecd      isolinux-restore-cd-ram.cfg menu-iso.tar.gz doc.tar.gz imginfo imgconvert cust-menu /root/tmp/clonezilla-sysresccd/restorecd
585    cp -L default-restore-ocswp.png /root/tmp/clonezilla-sysresccd/restorecd/ocswp.png    cp -L default-restore-ocswp.png /root/tmp/clonezilla-sysresccd/restorecd/ocswp.png
586    cp sbminst /root/tmp/clonezilla-sysresccd/restorecd    cp sbminst /root/tmp/clonezilla-sysresccd/restorecd
# Line 657  Is this correct? (y/[n]): " Line 657  Is this correct? (y/[n]): "
657   mv /root/tmp/clonezilla-sysresccd/rawrite /root/tmp/clonezilla-sysresccd/bootprog /root/tmp/clonezilla-sysresccd/utils   mv /root/tmp/clonezilla-sysresccd/rawrite /root/tmp/clonezilla-sysresccd/bootprog /root/tmp/clonezilla-sysresccd/utils
658   mv /root/tmp/clonezilla-sysresccd/version /root/tmp/clonezilla-sysresccd/SystemRescueCD-Version   mv /root/tmp/clonezilla-sysresccd/version /root/tmp/clonezilla-sysresccd/SystemRescueCD-Version
659    
660    #
661    # re-build clonezilla filesystem.squashfs
662    #
663    echo -n "Rebuilding Clonezilla squashfs...   "
664    cd /root/tmp/clonezilla-sysresccd/live
665    unsquashfs filesystem.squashfs 2>/dev/null 1>&2
666    cp -r ../README* ../doc ../restorecd squashfs-root
667    mksquashfs squashfs-root aa.squashfs -always-use-fragments -no-duplicates -all-root 2>/dev/null 1>&2
668    mv aa.squashfs filesystem.squashfs
669    rm -rf squashfs-root
670    cd
671    echo 'done'
672    
673   if [ $onlyCopyFiles -eq 1 ];then   if [ $onlyCopyFiles -eq 1 ];then
674    cleanUpValue=1    cleanUpValue=1
675  #   echo  #   echo

Legend:
Removed from v.63  
changed lines
  Added in v.68

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26