Changeset 489 in MondoRescue for trunk/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

Location:
trunk/mindi
Files:
3 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/mindi/distributions/conf/mindi.conf

    r449 r489  
    66# Changing some values may render mindi instable
    77# or cause failures. Use with care.
    8 
    9 #
    10 # Default log level
    11 #
    12 mindi_log_level=4
    138
    149#
     
    4035# Write mindi CD (yes|no) ?
    4136#
    42 mindi_write_mindi_cd="no"
    43 
    44 #
    45 # Kernel to use (NATIVE|FAILSAFE|PATH TO THE KERNEL)
    46 #
    47 mindi_kernel="NATIVE"
    48 #mondorescue_kernel="/boot/vmlinuz.special"
    49 
    50 #
    51 # Additinal modules to support
    52 # (white space separated list of modules)
    53 #
    54 mindi_additional_modules=""
    55 
    56 #
    57 # Boot loader to use
    58 # (GRUB|ELILO|LILO|RAW|NATIVE)
    59 #
    60 mindi_boot_loader="NATIVE"
     37mindi_write_cd="no"
    6138
    6239#
     
    7451#
    7552mindi_fd_device="/dev/fd0"
     53
     54#
     55# Additional Boot Parameters
     56#
     57mindi_boot_params="acpi=off apm=off devfs=nomount exec-shield=0 noresume selinux=0 barrier=off"
     58
     59# TBC
     60
     61# Kernel to use (NATIVE|FAILSAFE|PATH TO THE KERNEL)
     62#
     63mindi_kernel="NATIVE"
     64#mindi_kernel="/boot/vmlinuz.special"
     65
     66#
     67# Additinal modules to support
     68# (white space separated list of modules)
     69#
     70mindi_additional_modules=""
     71
     72#
     73# Boot loader to use
     74# (GRUB|ELILO|LILO|RAW|NATIVE)
     75#
     76mindi_boot_loader="NATIVE"
     77
     78
  • trunk/mindi/install.sh

    r461 r489  
    6161fi
    6262chmod 755 $local/sbin/mindi
    63 install -m 755 analyze-my-lvm parted2fdisk.pl $local/sbin
     63install -m 755 parted2fdisk.pl $local/sbin
     64install -m 755 analyze-my-lvm $locallib/mindi
    6465
    6566install -m 644 mindi.8 $MANDIR
     
    106107if [ "$RPMBUILDMINDI" != "true" ]; then
    107108    chown -R root:root $locallib/mindi $conf $DOCDIR
    108     chown root:root $local/sbin/mindi $MANDIR/mindi.8 $local/sbin/analyze-my-lvm $local/sbin/parted2fdisk.pl
     109    chown root:root $local/sbin/mindi $MANDIR/mindi.8 $locallib/mindi/analyze-my-lvm $local/sbin/parted2fdisk.pl
    109110    if [ "$ARCH" = "ia64" ] ; then
    110111        chown root:root $local/sbin/parted2fdisk
     
    112113fi
    113114
    114 # Special case for SuSE family wher doc is put elsewhere in the RPM
    115 if [ _"$dfam" != _"suse" ] then;
     115# Special case for SuSE family where doc is put elsewhere in the RPM
     116if [ _"$dfam" = _"suse" ]; then
    116117    rm -rf $DOCDIR
    117118fi
  • 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.