/[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 92 by sng, Sun May 30 20:11:06 2010 UTC revision 93 by sng, Fri Aug 13 08:30:37 2010 UTC
# Line 313  function readConfig(){ Line 313  function readConfig(){
313  }  }
314    
315  ####### Script starts here #######  ####### Script starts here #######
316    MKISOFS=genisoimage
317  onlyBurnISO=0  onlyBurnISO=0
318  onlyCopyFiles=0  onlyCopyFiles=0
319  onlyCreateISO=0  onlyCreateISO=0
# Line 570  Is this correct? (y/[n]): " Line 571  Is this correct? (y/[n]): "
571    fi    fi
572    echo -n "Copying new cfg file(s)...   "    echo -n "Copying new cfg file(s)...   "
573    if [ -z $(echo "$cfgFile" | grep 'cfg$') ];then    if [ -z $(echo "$cfgFile" | grep 'cfg$') ];then
574      tar -C /root/tmp/clonezilla-sysresccd -xzhf /root/.clonezilla-sysresccd/files/menu-iso.tar.gz      tar -C /root/tmp/clonezilla-sysresccd -xzhf /root/.clonezilla-sysresccd/files/menu-for-iso.tar.gz
575    else    else
576      cp -L "$cfgFile" /root/tmp/clonezilla-sysresccd/isolinux/isolinux.cfg      cp -L "$cfgFile" /root/tmp/clonezilla-sysresccd/isolinux/isolinux.cfg
577    fi    fi
# Line 581  Is this correct? (y/[n]): " Line 582  Is this correct? (y/[n]): "
582    mkdir /root/tmp/clonezilla-sysresccd/restorecd 2>/dev/null    mkdir /root/tmp/clonezilla-sysresccd/restorecd 2>/dev/null
583    cd /root/.clonezilla-sysresccd/files    cd /root/.clonezilla-sysresccd/files
584    cp -L pre* ocs-iso what-cd patch-clonezilla-sysresccd continue-multi-cd isolinux-restore-cd.cfg \    cp -L pre* ocs-iso what-cd patch-clonezilla-sysresccd continue-multi-cd isolinux-restore-cd.cfg \
585      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-for-iso.tar.gz doc.tar.gz imginfo imgconvert cust-menu /root/tmp/clonezilla-sysresccd/restorecd
586    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
587    cp sbminst /root/tmp/clonezilla-sysresccd/restorecd    cp sbminst /root/tmp/clonezilla-sysresccd/restorecd
588        
# Line 695  else Line 696  else
696    echo "Creating new ISO file."    echo "Creating new ISO file."
697  fi  fi
698    find /root/tmp/clonezilla-sysresccd -name "*~" -exec rm '{}' ';'    find /root/tmp/clonezilla-sysresccd -name "*~" -exec rm '{}' ';'
699  #   mkisofs -quiet -f -r -J -o "$outFile" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -iso-level 3 -joliet-long -input-charset utf-8 -output-charset utf-8 -V "$volLabel" -publisher "$publisher" -p "$preparerID" /root/tmp/clonezilla-sysresccd || errorISO  #    $MKISOFS -quiet -f -r -J -o "$outFile" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -iso-level 3 -joliet-long -input-charset utf-8 -output-charset utf-8 -V "$volLabel" -publisher "$publisher" -p "$preparerID" /root/tmp/clonezilla-sysresccd || errorISO
700    mkisofs -quiet -f -r -J -o "$outFile" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -V "$volLabel" -publisher "$publisher" -p "$preparerID" /root/tmp/clonezilla-sysresccd || errorISO     $MKISOFS -quiet -f -r -J -o "$outFile" -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -V "$volLabel" -publisher "$publisher" -p "$preparerID" /root/tmp/clonezilla-sysresccd || errorISO
701    echo "    echo "
702  Done creating new ISO file  Done creating new ISO file
703  The file is saved as $outFile"  The file is saved as $outFile"

Legend:
Removed from v.92  
changed lines
  Added in v.93

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26