Changeset 3527


Ignore:
Timestamp:
Mar 4, 2016, 6:47:07 AM (19 months ago)
Author:
bruno
Message:

Improve mondoarchive/mindi interface

  • Rename the mindi image mindi.iso (was mondorescue.iso which was confusing)
  • If called from mondoarchive, mindi now copies as well kernel and initrd to the boot image
Location:
branches/3.2
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi/mindi

    r3525 r3527  
    15701570    fi
    15711571    cp -f $MONDO_SHARE/autorun $MINDI_TMP/target 2>> $LOGFILE
     1572    cp -f $MINDI_TMP/target/vmlinuz $MONDO_ROOT 2>> $LOGFILE
     1573    if [ "$?" -ne "0" ] ; then
     1574        LogAll "ERROR: Failed to copy $MINDI_TMP/vmlinuz to $MONDO_ROOT"
     1575        LogAll "       Please check the target directory."
     1576        retval=$(($retval+1))
     1577    fi
     1578    cp -f $MINDI_TMP/target/initrd.img $MONDO_ROOT 2>> $LOGFILE
     1579    if [ "$?" -ne "0" ] ; then
     1580        LogAll "ERROR: Failed to copy $MINDI_TMP/initrd.img to $MONDO_ROOT"
     1581        LogAll "       Please check the target directory."
     1582        retval=$(($retval+1))
     1583    fi
    15721584fi
    15731585
  • branches/3.2/mondo-doc/mondorescue-howto.sgml

    r3502 r3527  
    15131513to restore over a network by default, which is silly because the
    15141514archives are on the CD's). Or, you can boot from the Mindi media
    1515 (or mondorescue.iso) and hit ENTER a few times to restore.</para>
     1515(mindi.iso) and hit ENTER a few times to restore.</para>
    15161516<para>Those ISO images can also be used for a PXE restore. For this
    15171517        to work, please refer to the file README.pxe provided with
  • branches/3.2/mondo/src/common/libmondo-archive.c

    r3516 r3527  
    850850    if (!res) {
    851851        log_to_screen("Boot+data disks were created OK");
    852         mr_asprintf(command, "cp -f %s/images/mindi.iso %s/mondorescue.iso", bkpinfo->scratchdir, MINDI_CACHE);
    853         log_msg(2, command);
    854         run_program_and_log_output(command, FALSE);
    855         mr_free(command);
    856852
    857853        if (bkpinfo->nonbootable_backup) {
  • branches/3.2/mondo/src/common/libmondo-stream.c

    r3430 r3527  
    735735    set_tape_block_size_with_mt(2048);
    736736
    737     mr_asprintf(command, "dd if=%s of=%s bs=2048",MINDI_CACHE"/mondorescue.iso",bkpinfo->media_device);
     737    mr_asprintf(command, "dd if=%s of=%s bs=2048",MINDI_CACHE"/mindi.iso",bkpinfo->media_device);
    738738    res += run_program_and_log_output(command, 1);
    739739    paranoid_free(command);
  • branches/3.2/mondo/src/mondoarchive/mondoarchive.c

    r3510 r3527  
    385385    }
    386386
    387     if (does_file_exist(MINDI_CACHE"/mondorescue.iso")) {
    388         log_to_screen(MINDI_CACHE"/mondorescue.iso, a boot/utility CD, is available if you want it.");
     387    if (does_file_exist(MINDI_CACHE"/mindi.iso")) {
     388        log_to_screen(MINDI_CACHE"/mindi.iso, a boot/utility CD, is available if you want it.");
    389389    }
    390390
Note: See TracChangeset for help on using the changeset viewer.