Changeset 3173 in MondoRescue for branches/3.0/mindi/mindi


Ignore:
Timestamp:
Jul 29, 2013, 9:08:58 AM (11 years ago)
Author:
Bruno Cornec
Message:
  • Use 2 README files as embedded doc for restore boot, with function keys
  • Improve #628 by adding a comment in order to connect external disks after the boot.
  • Improve also boot menu visibility.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/mindi

    r3172 r3173  
    8787LOGFILE=/var/log/mindi.log
    8888BOOT_MEDIA_MESSAGE="\
    89 To format and restore all files automatically, type 'nuke' <enter>.\n\
    90 To restore some/all files interactively, type 'interactive' <enter>.\n\
    91 To compare the archives with your filesystem, type 'compare' <enter>.\n\
    92 To boot to a command-line prompt (expert mode), type 'expert' <enter>.\n\
    93 You may add one or more of the following parameters as well:-\n\n\
    94         donteject - mondorestore will not eject the CD; this is useful if, for\n\
    95                     instance, your PC's case has a concealed CD-ROM drive\n\
    96         noresize  - your mountlist will not be adjusted to use your unallocated\n\
    97                     hard disk space\n\
    98         textonly  - do not call any Newt library routines; this is unattractive\n\
    99                     but valuable if you find your Newt library has bugs in it\n\n\
    100 e.g. Type 'nuke donteject textonly' if you have an unstable Newt library and \n\
    101 a PC whose CD-ROM drive tray would be damaged if it unexpectedly ejected.\n\
     89To format and restore all files automatically, type '0enuke07' <enter>.\n\
     90To restore some/all files interactively, type '0einteractive07' <enter>.\n\
     91To compare the archives with your filesystem, type '0ecompare07' <enter>.\n\
     92To boot to a command-line prompt (expert mode), type '0eexpert07' <enter>.\n\
     93\n\
     94You may add one or more parameters as well as per the function keys below\n\
     95e.g. Type '0enuke denymods=\"fdomain impi_si\"07' to not load these 2 modules\n\
     96\n\
     97If restoring from a local external disk or USB key, do not connect it \n\
     98until the boot-up has finished.\n\
     99\n\
     100\n0eF107-Main | Boot Parameters 0eF207-1/2 | 0eF307-2/2 | 0eF407-PXE\n\
    102101"
    103102FDISK=$MINDI_SBIN/parted2fdisk
     
    14891488        fi
    14901489    done
    1491     MakeMessageFile | cut -c1-80 > $MINDI_TMP/iso/message.txt
     1490    MakeMessageFile $MINDI_TMP/iso | cut -c1-80 > $MINDI_TMP/iso/message.txt
    14921491    if [ $KERNEL_IS_XEN = "yes" ]; then
    14931492        cp $xenkernelpath $MINDI_TMP/iso/xen.gz 2>> $LOGFILE || Die "Cannot copy xen.gz ($xenkernelpath) to mindi tmp ($MINDI_TMP/iso/xen.gz). Did you run out of disk space?"
     
    15131512    if [ "$ARCH" != "ia64" ] ; then
    15141513        if [ _"$MONDO_SHARE" != _"" ]; then
    1515             cp -f $MINDI_TMP/iso/{isolinux.cfg,initrd.img,vmlinuz,isolinux.bin,message.txt} $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?"
     1514            cp -f $MINDI_TMP/iso/{isolinux.cfg,initrd.img,vmlinuz,isolinux.bin,message.txt,boot*.txt,pxe.txt} $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?"
    15161515            if [ $KERNEL_IS_XEN = "yes" ]; then
    15171516                cp -f $MINDI_TMP/iso/{mboot.c32,xen.gz} $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy Xen core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?"
     
    16611660    done
    16621661    echo -en "."
    1663     MakeMessageFile | cut -c1-80 > $MINDI_TMP/usb/message.txt
     1662    MakeMessageFile $MINDI_TMP/usb | cut -c1-80 > $MINDI_TMP/usb/message.txt
    16641663    echo -en "."
    16651664    cp $kernelpath $MINDI_TMP/usb/vmlinuz 2>> $LOGFILE || Die "Cannot copy vmlinuz ($kernelpath) to mindi tmp ($MINDI_TMP/usb/vmlinuz). Did you run out of disk space?"
     
    17041703    if [ -x "/bin/lsb_release" ]; then
    17051704        DESC=`/bin/lsb_release -d | cut -d: -f2 | sed "s/[ \t]*//"`
    1706     elif [ -r /etc/arch-release ]; then  # this code must be written before /etc/issue test to avoid errors                             
    1707         DESC="Arch Linux"                                                                                                           
    1708         if [ -r /var/log/pacman.log ]; then                                                                                         
    1709             # there are no releases but we can get the last system upgrade                                                     
    1710             # Output example:   Arch Linux [2011-03-03 01:39]                                                                   
    1711             DESC="$DESC $(tac /var/log/pacman.log | grep -m1 'full system upgrade' | cut -d']' -f1)]"                           
     1705    elif [ -r /etc/arch-release ]; then  # this code must be written before /etc/issue test to avoid errors
     1706        DESC="Arch Linux"
     1707        if [ -r /var/log/pacman.log ]; then
     1708            # there are no releases but we can get the last system upgrade
     1709            # Output example:   Arch Linux [2011-03-03 01:39]
     1710            DESC="$DESC $(tac /var/log/pacman.log | grep -m1 'full system upgrade' | cut -d']' -f1)]"
    17121711        fi
    17131712    elif [ -r /etc/issue.net ]; then
     
    17401739        fi
    17411740    fi
    1742     echo -en "\n\n\n"
     1741
     1742    # Also create the other help screens
     1743    head -24 $MINDI_CONF/README.bootparam | cut -c1-80 > $1/boot1.txt
     1744    head -48 $MINDI_CONF/README.bootparam | tail -24 | cut -c1-80 > $1/boot2.txt
     1745    head -24 $MINDI_CONF/README.pxe | cut -c1-80 > $1/pxe.txt
    17431746}
    17441747
     
    17571760    # Generic header for conf file
    17581761    if [ "$type" != "elilo" ] ; then
    1759         echo -en "prompt 1\ndisplay message.txt\n"
     1762        echo -en "prompt 1\ndisplay message.txt\nF1 message.txt\nF2 boot1.txt\nF3 boot2.txt\nF4 pxe.txt\n"
    17601763    else
    17611764        echo -en "prompt\n"
     
    18841887        retval=$(($retval+1))
    18851888    fi
    1886     MakeMessageFile | cut -c1-80 > $mountpoint/message.txt
     1889    MakeMessageFile $mountpoint | cut -c1-80 > $mountpoint/message.txt
    18871890
    18881891    mkdir -p $mountpoint/tmp
     
    19681971
    19691972    # copy Mindi's skeleton fs & lilo/syslinux/whatever stuff into it
    1970     MakeMessageFile | cut -c1-80 > $mountpoint/message.txt
     1973    MakeMessageFile $mountpoint | cut -c1-80 > $mountpoint/message.txt
    19711974    MakeBootConfFile isolinux > $mountpoint/syslinux.cfg
    19721975    LogFile "INFO: Copying $MINDI_TMP/initrd.img to $mountpoint/initrd.img..."
Note: See TracChangeset for help on using the changeset viewer.