Changeset 3173 in MondoRescue for branches/3.0/mindi/mindi
- Timestamp:
- Jul 29, 2013, 9:08:58 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/mindi/mindi
r3172 r3173 87 87 LOGFILE=/var/log/mindi.log 88 88 BOOT_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\ 89 To format and restore all files automatically, type '0enuke07' <enter>.\n\ 90 To restore some/all files interactively, type '0einteractive07' <enter>.\n\ 91 To compare the archives with your filesystem, type '0ecompare07' <enter>.\n\ 92 To boot to a command-line prompt (expert mode), type '0eexpert07' <enter>.\n\ 93 \n\ 94 You may add one or more parameters as well as per the function keys below\n\ 95 e.g. Type '0enuke denymods=\"fdomain impi_si\"07' to not load these 2 modules\n\ 96 \n\ 97 If restoring from a local external disk or USB key, do not connect it \n\ 98 until the boot-up has finished.\n\ 99 \n\ 100 \n0eF107-Main | Boot Parameters 0eF207-1/2 | 0eF307-2/2 | 0eF407-PXE\n\ 102 101 " 103 102 FDISK=$MINDI_SBIN/parted2fdisk … … 1489 1488 fi 1490 1489 done 1491 MakeMessageFile | cut -c1-80 > $MINDI_TMP/iso/message.txt1490 MakeMessageFile $MINDI_TMP/iso | cut -c1-80 > $MINDI_TMP/iso/message.txt 1492 1491 if [ $KERNEL_IS_XEN = "yes" ]; then 1493 1492 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?" … … 1513 1512 if [ "$ARCH" != "ia64" ] ; then 1514 1513 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?" 1516 1515 if [ $KERNEL_IS_XEN = "yes" ]; then 1517 1516 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?" … … 1661 1660 done 1662 1661 echo -en "." 1663 MakeMessageFile | cut -c1-80 > $MINDI_TMP/usb/message.txt1662 MakeMessageFile $MINDI_TMP/usb | cut -c1-80 > $MINDI_TMP/usb/message.txt 1664 1663 echo -en "." 1665 1664 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?" … … 1704 1703 if [ -x "/bin/lsb_release" ]; then 1705 1704 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)]" 1712 1711 fi 1713 1712 elif [ -r /etc/issue.net ]; then … … 1740 1739 fi 1741 1740 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 1743 1746 } 1744 1747 … … 1757 1760 # Generic header for conf file 1758 1761 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" 1760 1763 else 1761 1764 echo -en "prompt\n" … … 1884 1887 retval=$(($retval+1)) 1885 1888 fi 1886 MakeMessageFile | cut -c1-80 > $mountpoint/message.txt1889 MakeMessageFile $mountpoint | cut -c1-80 > $mountpoint/message.txt 1887 1890 1888 1891 mkdir -p $mountpoint/tmp … … 1968 1971 1969 1972 # copy Mindi's skeleton fs & lilo/syslinux/whatever stuff into it 1970 MakeMessageFile | cut -c1-80 > $mountpoint/message.txt1973 MakeMessageFile $mountpoint | cut -c1-80 > $mountpoint/message.txt 1971 1974 MakeBootConfFile isolinux > $mountpoint/syslinux.cfg 1972 1975 LogFile "INFO: Copying $MINDI_TMP/initrd.img to $mountpoint/initrd.img..."
Note:
See TracChangeset
for help on using the changeset viewer.