Changeset 489 in MondoRescue for trunk/mindi/mindi


Ignore:
Timestamp:
Apr 19, 2006, 11:02:43 AM (18 years ago)
Author:
bcornec
Message:

svn merge -r 463:482 $SVN_M/branches/stable
svn merge -r 485:488 $SVN_M/branches/stable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi/mindi

    r463 r489  
    1515### Which arch are we on (useful for ia64 port)
    1616export ARCH=`/bin/arch`
    17 
    18 ADDITIONAL_BOOT_PARAMS="acpi=off apm=off devfs=nomount exec-shield=0 noresume selinux=0 barrier=off"
    1917
    2018RUN_AFTER_INITIAL_BOOT_PHASE="echo \"Who lives in a pineapple under the sea?\" > /tmp/spongebob.squarepants.txt"
     
    6260    IA64_BOOT_SIZE=$mindi_ia64_boot_size
    6361fi
    64 
    6562if [ "$mindi_deplist_dir" == "" ]; then
    6663    DEPLIST_DIR="$MINDI_CONF/deplist.d"
     
    6865    DEPLIST_DIR="$mindi_deplist_dir"
    6966fi
     67# TBC
    7068if [ "$mindi_write_boot_floppy" == "" ]; then
    7169    WRITE_BOOT_FLOPPIES="yes"
     
    7371    WRITE_BOOT_FLOPPIES="$mindi_write_boot_floppy"
    7472fi
    75 if [ "$mindi_write_mindi_cd" == "" ]; then
    76     WRITE_BOOT_FLOPPIES="yes"
     73# TBC
     74if [ "$mindi_write_cd" == "" ]; then
     75    WRITE_MINDI_CD="yes"
    7776else
    78     WRITE_BOOT_FLOPPIES="$mindi_write_boot_floppy"
     77    WRITE_MINDI_CD="$mindi_write_cd"
    7978fi
     79# TBC
    8080if [ "$mindi_images_dir" == "" ]; then
    8181    CACHE_LOC="/var/cache/mindi"
     
    9898    FDDEVICE="$mindi_fd_device"
    9999fi
     100if [ "mindi_boot_params" == "" ]; then
     101    ADDITIONAL_BOOT_PARAMS="acpi=off apm=off devfs=nomount exec-shield=0 noresume selinux=0 barrier=off"
     102else
     103    ADDITIONAL_BOOT_PARAMS="$mindi_boot_params"
     104fi
     105
    100106
    101107# Other parameters
     
    13611367    if [ -d "/proc/lvm" ] || [ -d "/dev/mapper" ]; then
    13621368    echo -en "\rAnalyzing LVM...\r"
    1363     all_partitions=`$MINDI_SBIN/analyze-my-lvm | fgrep ">>>" | cut -d' ' -f2-32`
     1369    all_partitions=`$MINDI_LIB/analyze-my-lvm | fgrep ">>>" | cut -d' ' -f2-32`
    13641370    fi
    13651371    all_partitions="$all_partitions `ListAllPartitions 2> /dev/null`"
     
    17841790    return $res
    17851791
    1786 # --- the kernel-only method NO LONGER WORKS. Not since Apr 2002.
    1787 # It should work, according to the Boot Disk HOWTO, but it doesn't.
    1788 # It works for my failsafe kernel & for RH7.2 but not RH7.3, 8.0, etc.
    1789 # -Hugo, Apr 19th 2004
    1790 #   dd if=$1 of=$2 bs=1k &> /dev/null || Die "Cannot dd blank file"
    1791 #   dd if=/dev/zero bs=1k count=$3 >> $2 2> /dev/null || Die "Cannot dd blank file"
    1792 #   mv -f $2 $2.old
    1793 #   dd if=$2.old bs=1k count=$3 of=$2 &> /dev/null || Die "Cannot dd blank file"
    1794 #   rm -f $2.old
    1795 #   if [ "$3" = "1440" ] ; then
    1796 #       rdev $2 "/dev/fd0H"$3
    1797 #   else
    1798 #       rdev $2 "/dev/fd0u"$3
    1799 #   fi
    1800 #   rdev -R $2 0
    1801 #   rdev -r $2 49152
    18021792}
    18031793
     
    22572247    noof_disks=$?
    22582248    [ "$noof_disks" -eq "0" ] && Die "Too much stuff!"
    2259 #    if [ "$noof_disks" -ge "8" ] ; then
    2260 #        LogIt "You are putting a ludicrously large amount of data on these disks."
    2261 #        LogIt "I shall therefore double EXTRA_SPACE, just in case your ramdisk is too small."
    2262 #        EXTRA_SPACE=$(($EXTRA_SPACE*2))
    2263 #    fi
    22642249    MakeMountlist $TMP_ROOT/mountlist.txt
    22652250    mkdir -p $minidir_root/$noof_disks/tmp
     
    22672252    cp -f $TMP_ROOT/mountlist.txt $CACHE_LOC
    22682253    [ "`DidMondoCallMe`" ] && cp -f $minidir_root/$noof_disks/tmp/mountlist.txt $MONDO_TMP/.
    2269     [ -d "/proc/lvm" ] && $MINDI_SBIN/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
    2270     [ -d "/dev/mapper" ] && $MINDI_SBIN/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
     2254    [ -d "/proc/lvm" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
     2255    [ -d "/dev/mapper" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm
    22712256    cat $minidir_root/$noof_disks/tmp/mountlist.txt >> $LOGFILE
    22722257    ZipMinidirsIntoTarballs $minidir_root $tardir $noof_disks
     
    25852570       root="/"
    25862571    fi
    2587     for fname in `find $root -maxdepth 2 -type f | fgrep lin | fgrep -v /proc/` ; do
     2572    for fname in `find $root -maxdepth 2 -type f | fgrep lin | egrep -v '^/proc/|^/net/'` ; do
    25882573    [ ! -e "$fname" ] && continue
    25892574        [ "$fname" = "/boot/vmlinuz.shipped" ] && [ -f "/boot/vmlinuz" ] && continue; # ignore SuSE's extra kernel
     
    32343219    else
    32353220        if ! PrepareBootDiskImage_LILO $imagesdir 1722 $kernelpath $ramdisk_size ; then
    3236         LogIt "Warning - failed to create 1.72MB boot image. Please reduce your kernel's size\n"
    3237         LogIt "if you want to make a 1.72MB floppy disk.\n"
    3238         fi
    3239         PrepareBootDiskImage_LILO $imagesdir 2880 $kernelpath $ramdisk_size || Die "Failed to create 2.88MB floppy disk image."
     3221            LogIt "Warning - failed to create 1.72MB boot image. Please reduce your kernel's size\n"
     3222            LogIt "if you want to make a 1.72MB floppy disk.\n"
     3223        fi
     3224        if ! PrepareBootDiskImage_LILO $imagesdir 2880 $kernelpath $ramdisk_size ;  then
     3225            LogIt "Warning - failed to create 2.88MB floppy disk image.\n"
     3226            LogIt "Please reduce your kernel's size\n"
     3227            LogIt "if you want to make a 2.88MB floppy disk.\n"
     3228            PrepareBootDiskImage_LILO $imagesdir 5760 $kernelpath $ramdisk_size || Die "Failed to create 2.88MB floppy disk image."
     3229        fi
    32403230    fi
    32413231else
Note: See TracChangeset for help on using the changeset viewer.