Changeset 3532 in MondoRescue
- Timestamp:
- Mar 9, 2016, 6:47:39 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi/mindi
r3531 r3532 1477 1477 } 1478 1478 1479 MakeISO() { 1480 1481 LogAll "INFO: Invoking $CMD" 1482 (cd "$MINDI_TMP/mpt" ; $CMD .) > /dev/null 2> $MINDI_TMP/mkisofs.log 1483 if [ $? -ne 0 ] ; then 1484 if [ "$BOOT_TYPE" = "UEFI" ]; then 1485 CMD=`echo $CMD | perl -p -e 's|--efi-boot |-eltorito-platform 0xEF -eltorito-boot |; s|-efi-boot |-eltorito-platform 0xEF -eltorito-boot |;'` 1486 LogAll "INFO: Invoking instead $CMD" 1487 (cd "$MINDI_TMP/mpt" ; $CMD .) > /dev/null 2> $MINDI_TMP/mkisofs.log 1488 if [ $? -eq 0 ] ; then 1489 LogAll "INFO: Created bootable ISO image at $MINDI_CACHE/mindi.iso" 1490 else 1491 MakeISOErrors 1492 fi 1493 else 1494 MakeISOErrors 1495 fi 1496 else 1497 LogAll "INFO: Created bootable ISO image at $MINDI_CACHE/mindi.iso" 1498 fi 1499 rm -f $MINDI_TMP/mkisofs.log 1500 } 1501 1479 1502 MakeBootableDevice() { 1480 1503 … … 1708 1731 MindiExit -1 1709 1732 fi 1733 if [ "$target" = "ISO" ]; then 1734 if [ "$BOOT_TYPE" = "BIOS" ]; then 1735 # syslinux should be run on a local file (doen't work through NFS Cf: #297) 1736 # and run after the formating for versions > 6 it seems 1737 syslinux $part >> $LOGFILE 2>> $LOGFILE 1738 fi 1739 fi 1710 1740 LogAll "INFO: Mounting $part on $MINDI_TMP/mpt" 1711 1741 mount -t vfat $mount_opt $part $MINDI_TMP/mpt 2>> $LOGFILE … … 1736 1766 if [ "$ARCH" != "ia64" ] ; then 1737 1767 CMD="$ISO_CMD $ISO_OPT -b $tbc/isolinux.bin -c $tbc/boot.cat -U -boot-load-size 4 -boot-info-table" 1768 MakeISO 1738 1769 else 1739 1770 CMD="$ISO_CMD $ISO_OPT -b images/mindi-bootroot.img -c images/boot.cat" 1740 1771 fi 1741 LogAll "INFO: Invoking $CMD"1742 (cd "$MINDI_TMP/mpt" ; $CMD .) > /dev/null 2> $MINDI_TMP/mkisofs.log1743 if [ $? -ne 0 ] ; then1744 if [ "$BOOT_TYPE" = "UEFI" ]; then1745 CMD=`echo $CMD | perl -p -e 's|--efi-boot |-eltorito-platform 0xEF -eltorito-boot |; s|-efi-boot |-eltorito-platform 0xEF -eltorito-boot |;'`1746 LogAll "INFO: Invoking instead $CMD"1747 (cd "$MINDI_TMP/mpt" ; $CMD .) > /dev/null 2> $MINDI_TMP/mkisofs.log1748 if [ $? -eq 0 ] ; then1749 LogAll "INFO: Created bootable ISO image at $MINDI_CACHE/mindi.iso"1750 else1751 MakeISOErrors1752 fi1753 else1754 MakeISOErrors1755 fi1756 else1757 LogAll "INFO: Created bootable ISO image at $MINDI_CACHE/mindi.iso"1758 fi1759 rm -f $MINDI_TMP/mkisofs.log1760 1772 fi 1761 1773 … … 1763 1775 1764 1776 if [ "$target" = "ISO" ]; then 1765 # ISO1766 if [ "$BOOT_TYPE" = "BIOS" ]; then1767 # syslinux should be run on a local file (doen't work through NFS Cf: #297)1768 # and run after the formating for versions > 6 it seems1769 syslinux $part >> $LOGFILE 2>> $LOGFILE1770 fi1771 1777 cp $part $MINDI_CACHE 1778 if [ "$ARCH" = "ia64" ] ; then 1779 # Here we need to remount to put the boot image at the right place now it's available 1780 mount -t vfat $mount_opt $part $MINDI_TMP/mpt 2>> $LOGFILE 1781 cp $MINDI_CACHE/$part $MINDI_TMP/mpt/images 1782 MakeISO 1783 umount $MINDI_TMP/mpt || Die "Unable to unmount $MINDI_TMP/mpt" 1784 fi 1772 1785 else 1773 1786 # USB
Note:
See TracChangeset
for help on using the changeset viewer.