Magellan Linux

Diff of /branches/mlivecdbuild-1_x_branch/mlivecdbuild2.sh

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

revision 360 by niro, Mon Mar 27 21:23:02 2006 UTC revision 464 by niro, Sat Apr 14 15:23:27 2007 UTC
# Line 143  prepare_iso() Line 143  prepare_iso()
143    
144   echo Setting up services ...   echo Setting up services ...
145    
 # not needed with initscripts 0.3.6-r2  
 # # change mountfs with mountfslivecd  
 # MROOT="${CDCHROOTDIR}" rc-config del mountfs || die "rc del mountfs"  
 # MROOT="${CDCHROOTDIR}" rc-config add mountfslivecd || die "rc add mountfslivecd"  
   
146   # add hardware detection   # add hardware detection
147   MROOT="${CDCHROOTDIR}" rc-config add hwdetect || die "rc add hwdetect"   MROOT="${CDCHROOTDIR}" rc-config add hwdetect || die "rc add hwdetect"
148    
# Line 252  generate_iso() Line 247  generate_iso()
247   popd   popd
248  }  }
249    
250    generate_dvd()
251    {
252     echo Generating DVD Image ...
253     install -d ${CDISOROOT}
254     pushd ${CDISOROOT} &&
255     growisofs -dvd-compat \
256     -rock \
257     -full-iso9660-filenames \
258     -allow-leading-dots \
259     -disable-deep-relocation \
260     -output ${LIVECDROOT}/${CDISONAME} \
261     -eltorito-boot isolinux/isolinux.bin \
262     -eltorito-catalog isolinux/boot.cat \
263     -no-emul-boot \
264     -boot-load-size 4 \
265     -boot-info-table \
266     -volid "${CDID}" \
267     ${CDISOROOT} #&> /dev/null
268     popd
269    }
270    
271  enter_livecd()  enter_livecd()
272  {  {
273   mount -t sysfs sysfs ${CDCHROOTDIR}/proc   mount -t sysfs sysfs ${CDCHROOTDIR}/proc
# Line 277  usage() Line 293  usage()
293   echo "    initrd     - generates a livecd suitable initrd"   echo "    initrd     - generates a livecd suitable initrd"
294   echo "    bootloader - installs the bootloader"   echo "    bootloader - installs the bootloader"
295   echo "    isogen     - generate the final livecd iso image"   echo "    isogen     - generate the final livecd iso image"
296     echo "    dvdgen     - same as isogen but creates a dvd-image"
297   echo "    all        - runs all tasks to get a livecd from zero"   echo "    all        - runs all tasks to get a livecd from zero"
298   echo   echo
299   echo "    for example '$(basename $0) all default'"   echo "    for example '$(basename $0) all default'"
# Line 287  usage() Line 304  usage()
304  # source profile config - overrides all other vars  # source profile config - overrides all other vars
305  [ -f ${PROFILES_DIR}/${CDPROFILE}/config ] && . ${PROFILES_DIR}/${CDPROFILE}/config  [ -f ${PROFILES_DIR}/${CDPROFILE}/config ] && . ${PROFILES_DIR}/${CDPROFILE}/config
306    
 #bootstrap_system  
 #prepare_iso  
 #generate_rootfs  
 #generate_initrd  
 #install_bootloader  
 #generate_iso  
   
307  case $1 in  case $1 in
308   bootstrap) bootstrap_system;;   bootstrap) bootstrap_system;;
309   prepare) prepare_iso;;   prepare) prepare_iso;;
# Line 301  case $1 in Line 311  case $1 in
311   initrd) generate_initrd;;   initrd) generate_initrd;;
312   bootloader) install_bootloader;;   bootloader) install_bootloader;;
313   isogen) generate_iso;;   isogen) generate_iso;;
314     dvdgen) generate_dvd;;
315   all)   all)
316   bootstrap_system   bootstrap_system
317   prepare_iso   prepare_iso
318   generate_rootfs   generate_rootfs
319   generate_initrd   generate_initrd
320   install_bootloader   install_bootloader
321   generate_iso   if [[ ${DEFINE_DVD} = 1 ]]
322     then
323     generate_dvd
324     else
325     generate_iso
326     fi
327   ;;   ;;
328   *|'') usage;;   *|'') usage;;
329  esac  esac

Legend:
Removed from v.360  
changed lines
  Added in v.464