Changeset 489 in MondoRescue for trunk/mindi
- Timestamp:
- Apr 19, 2006, 11:02:43 AM (19 years ago)
- Location:
- trunk/mindi
- Files:
-
- 3 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/mindi/distributions/conf/mindi.conf
r449 r489 6 6 # Changing some values may render mindi instable 7 7 # or cause failures. Use with care. 8 9 #10 # Default log level11 #12 mindi_log_level=413 8 14 9 # … … 40 35 # Write mindi CD (yes|no) ? 41 36 # 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" 37 mindi_write_cd="no" 61 38 62 39 # … … 74 51 # 75 52 mindi_fd_device="/dev/fd0" 53 54 # 55 # Additional Boot Parameters 56 # 57 mindi_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 # 63 mindi_kernel="NATIVE" 64 #mindi_kernel="/boot/vmlinuz.special" 65 66 # 67 # Additinal modules to support 68 # (white space separated list of modules) 69 # 70 mindi_additional_modules="" 71 72 # 73 # Boot loader to use 74 # (GRUB|ELILO|LILO|RAW|NATIVE) 75 # 76 mindi_boot_loader="NATIVE" 77 78 -
trunk/mindi/install.sh
r461 r489 61 61 fi 62 62 chmod 755 $local/sbin/mindi 63 install -m 755 analyze-my-lvm parted2fdisk.pl $local/sbin 63 install -m 755 parted2fdisk.pl $local/sbin 64 install -m 755 analyze-my-lvm $locallib/mindi 64 65 65 66 install -m 644 mindi.8 $MANDIR … … 106 107 if [ "$RPMBUILDMINDI" != "true" ]; then 107 108 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.pl109 chown root:root $local/sbin/mindi $MANDIR/mindi.8 $locallib/mindi/analyze-my-lvm $local/sbin/parted2fdisk.pl 109 110 if [ "$ARCH" = "ia64" ] ; then 110 111 chown root:root $local/sbin/parted2fdisk … … 112 113 fi 113 114 114 # Special case for SuSE family wher doc is put elsewhere in the RPM115 if [ _"$dfam" != _"suse" ] then;115 # Special case for SuSE family where doc is put elsewhere in the RPM 116 if [ _"$dfam" = _"suse" ]; then 116 117 rm -rf $DOCDIR 117 118 fi -
trunk/mindi/mindi
r463 r489 15 15 ### Which arch are we on (useful for ia64 port) 16 16 export ARCH=`/bin/arch` 17 18 ADDITIONAL_BOOT_PARAMS="acpi=off apm=off devfs=nomount exec-shield=0 noresume selinux=0 barrier=off"19 17 20 18 RUN_AFTER_INITIAL_BOOT_PHASE="echo \"Who lives in a pineapple under the sea?\" > /tmp/spongebob.squarepants.txt" … … 62 60 IA64_BOOT_SIZE=$mindi_ia64_boot_size 63 61 fi 64 65 62 if [ "$mindi_deplist_dir" == "" ]; then 66 63 DEPLIST_DIR="$MINDI_CONF/deplist.d" … … 68 65 DEPLIST_DIR="$mindi_deplist_dir" 69 66 fi 67 # TBC 70 68 if [ "$mindi_write_boot_floppy" == "" ]; then 71 69 WRITE_BOOT_FLOPPIES="yes" … … 73 71 WRITE_BOOT_FLOPPIES="$mindi_write_boot_floppy" 74 72 fi 75 if [ "$mindi_write_mindi_cd" == "" ]; then 76 WRITE_BOOT_FLOPPIES="yes" 73 # TBC 74 if [ "$mindi_write_cd" == "" ]; then 75 WRITE_MINDI_CD="yes" 77 76 else 78 WRITE_ BOOT_FLOPPIES="$mindi_write_boot_floppy"77 WRITE_MINDI_CD="$mindi_write_cd" 79 78 fi 79 # TBC 80 80 if [ "$mindi_images_dir" == "" ]; then 81 81 CACHE_LOC="/var/cache/mindi" … … 98 98 FDDEVICE="$mindi_fd_device" 99 99 fi 100 if [ "mindi_boot_params" == "" ]; then 101 ADDITIONAL_BOOT_PARAMS="acpi=off apm=off devfs=nomount exec-shield=0 noresume selinux=0 barrier=off" 102 else 103 ADDITIONAL_BOOT_PARAMS="$mindi_boot_params" 104 fi 105 100 106 101 107 # Other parameters … … 1361 1367 if [ -d "/proc/lvm" ] || [ -d "/dev/mapper" ]; then 1362 1368 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` 1364 1370 fi 1365 1371 all_partitions="$all_partitions `ListAllPartitions 2> /dev/null`" … … 1784 1790 return $res 1785 1791 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 20041790 # 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.old1793 # dd if=$2.old bs=1k count=$3 of=$2 &> /dev/null || Die "Cannot dd blank file"1794 # rm -f $2.old1795 # if [ "$3" = "1440" ] ; then1796 # rdev $2 "/dev/fd0H"$31797 # else1798 # rdev $2 "/dev/fd0u"$31799 # fi1800 # rdev -R $2 01801 # rdev -r $2 491521802 1792 } 1803 1793 … … 2257 2247 noof_disks=$? 2258 2248 [ "$noof_disks" -eq "0" ] && Die "Too much stuff!" 2259 # if [ "$noof_disks" -ge "8" ] ; then2260 # 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 # fi2264 2249 MakeMountlist $TMP_ROOT/mountlist.txt 2265 2250 mkdir -p $minidir_root/$noof_disks/tmp … … 2267 2252 cp -f $TMP_ROOT/mountlist.txt $CACHE_LOC 2268 2253 [ "`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-lvm2270 [ -d "/dev/mapper" ] && $MINDI_ SBIN/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm2254 [ -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 2271 2256 cat $minidir_root/$noof_disks/tmp/mountlist.txt >> $LOGFILE 2272 2257 ZipMinidirsIntoTarballs $minidir_root $tardir $noof_disks … … 2585 2570 root="/" 2586 2571 fi 2587 for fname in `find $root -maxdepth 2 -type f | fgrep lin | fgrep -v /proc/` ; do2572 for fname in `find $root -maxdepth 2 -type f | fgrep lin | egrep -v '^/proc/|^/net/'` ; do 2588 2573 [ ! -e "$fname" ] && continue 2589 2574 [ "$fname" = "/boot/vmlinuz.shipped" ] && [ -f "/boot/vmlinuz" ] && continue; # ignore SuSE's extra kernel … … 3234 3219 else 3235 3220 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 3240 3230 fi 3241 3231 else
Note:
See TracChangeset
for help on using the changeset viewer.