Changeset 2773 in MondoRescue


Ignore:
Timestamp:
Apr 22, 2011, 2:22:24 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Propose more variables in the mindi.conf example
  • More explicit messages when size unsufficient in mindi for kernel + initrd as per #471
  • Better loging of labeling in mondo when in nuke mode
Location:
branches/2.2.9
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi/mindi

    r2757 r2773  
    17721772        LogIt "Failed to copy $MINDI_TMP/initrd.img to $mountpoint"
    17731773        cat $MINDI_TMP/mtpt.$$ >> $LOGFILE
    1774         LogIt "Please unload some of your modules and try again."
     1774        LogIt "Please unload some of your modules and try again. Or increase EXTRA_SPACE and BOOT_SIZE in $MINDI_CONFIG"
    17751775        rm -f $MINDI_TMP/mtpt.$$
    17761776        LogIt "Cannot incorporate initrd.img in bootdisk (kernel / modules too big?)"
     
    18001800    #   losetup /dev/loop0 -d
    18011801        [ "$imagefile" != "" ] && rm -f $imagefile
    1802         Die "Sorry, your kernel is too big for your image"
     1802        LogIt "Sorry, your kernel is too big for your image"
     1803        Die "Try to increase EXTRA_SPACE and BOOT_SIZE in $MINDI_CONFIG"
    18031804        return 0
    18041805    fi
     
    18691870        LogIt "Please unload some of your modules and try again."
    18701871        rm -f $MINDI_TMP/mtpt.$$
    1871         LogIt "Cannot incorporate initrd.img in bootdisk (kernel / modules too big?)"
     1872        LogIt "Cannot incorporate initrd.img in bootdisk (kernel / modules too big?). Try to increase EXTRA_SPACE and BOOT_SIZE in $MINDI_CONFIG"
    18721873        retval=$(($retval+1))
    18731874    fi
     
    19011902        rmdir $mountpoint || LogIt "Cannot rmdir (PBDI)"
    19021903
    1903         Die "Sorry, your kernel is too big for your image"
    1904         return 0
     1904        LogIt "Sorry, your kernel is too big for your image"
     1905        Die "Try to increase EXTRA_SPACE and BOOT_SIZE in $MINDI_CONFIG"
    19051906    fi
    19061907    max_kernel_size=$(($free_space+`du -sk $kernelpath | cut -f1`))
  • branches/2.2.9/mindi/mindi.conf

    r2459 r2773  
    55#
    66# FORCE_MODS="crc_ccitt crc_ccitt"
     7#
     8# EXTRA_SPACE=80152     # increase if you run out of ramdisk space
     9# BOOT_SIZE=32768       # size of the boot disk
  • branches/2.2.9/mondo/src/mondorestore/mondorestore.c

    r2682 r2773  
    890890                        "Using tune2fs to identify your ext2,3 partitions");
    891891
    892     sprintf(tmp, "label-partitions-as-necessary %s < /tmp/fstab",
    893             g_mountlist_fname);
     892    sprintf(tmp, "label-partitions-as-necessary %s < /tmp/fstab >> %s 2>> %s", g_mountlist_fname, fstab_fname, MONDO_LOGFILE, MONDO_LOGFILE);
    894893    res = run_program_and_log_output(tmp, TRUE);
    895894    if (res) {
Note: See TracChangeset for help on using the changeset viewer.