Changeset 1060 in MondoRescue
- Timestamp:
- Jan 17, 2007, 6:03:13 AM (18 years ago)
- Location:
- branches/stable
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/distributions/conf/deplist.d/lvm.conf
r1047 r1060 3 3 # Tools for LVM support 4 4 # 5 LVMFILES: 5 6 /etc/lvm/lvm.conf 6 7 /sbin/fsadm -
branches/stable/mindi/distributions/conf/mindi.conf.dist
r1047 r1060 18 18 19 19 # 20 # deplist directory20 # Maximum compressed size for disk image in KB. 21 21 # 22 mindi_deplist_dir="/etc/mindi/deplist.d" 22 mindi_max_compressed_size=1300 23 24 # 25 # deplist file name (stored in $MINDI_CONF) 26 # 27 mindi_deplist_file="deplist.txt" 23 28 24 29 # … … 38 43 39 44 # 45 # If set to "no", you will be prompted for whether or not 46 # you want to use your own kernel, or the supplied default. 47 # If "yes" mindi will automatically use your own kernel. 48 # 49 mindi_use_own_kernel="yes" 50 51 # 40 52 # Images creation dir 53 # WARNING: This directory is erased before usage 41 54 # 42 55 mindi_images_dir="/var/cache/mindi" … … 54 67 # 55 68 # Additional Boot Parameters 69 # You may want to remove acpi=off if you're unable to reboot on mindi's CD 70 # You may want to add ramdisk_size=1024 if on Fedora Core 5/6 56 71 # 57 72 mindi_boot_params="acpi=off apm=off devfs=nomount exec-shield=0 noresume selinux=0 barrier=off" 58 73 59 # TBC60 74 # 61 75 # Kernel to use (NATIVE|FAILSAFE|PATH TO THE KERNEL) … … 64 78 #mindi_kernel="/boot/vmlinuz.special" 65 79 66 # TBC 80 # 81 # Modules supported by mindi and required at boot time 82 # 83 mindi_scsi_mods="3w-xxxx 53c7,8xx a100u2w a320raid aacraid advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qlogicfas qlogicfc qlogicisp raw1394 scsi_debug scsi_mod sd_mod seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs" 84 mindi_ide_mods="ide ide-generic ide-detect ide-mod ide-disk ide-cd ide_cd ide-cs ide-core ide_core edd paride ata_piix libata via82cxxx generic nvidia ahci sata_nv" 85 mindi_usb_mods="usb-storage usb-ohci usb-uhci usbcore usb_storage hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd usbkbd usbhid" 86 mindi_pcmcia_mods="pcmcia_core ds yenta_socket" 87 mindi_cdrom_mods="cdrom isocd isofs inflate_fs nls_iso8859-1 nls_cp437 sg sr_mod zlib_inflate" 88 mindi_tape_mods="ht st osst ide-tape ide_tape" 89 mindi_floppy_mods="ide-floppy floppy" 90 mindi_net_mods="sunrpc nfs nfs_acl lockd loop mii 3c59x e100 bcm5700 bnx2 e1000 eepro100 ne2k-pci tg3 pcnet32 8139cp 8139too 8390 vmxnet vmnet" 91 mindi_extra_mods="vfat fat loop md-mod linear raid0 raid1 xor raid5 lvm-mod dm-mod dm-snapshot dm-zero dm-mirror jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd mbcache" 67 92 # 68 # 69 # Additinal modules to support 93 # Additional modules to support 70 94 # (white space separated list of modules) 71 95 # 72 mindi_additional_modules="" 73 74 # TBC 75 # 76 # 77 # Boot loader to use 78 # (GRUB|ELILO|LILO|RAW|NATIVE) 79 # 80 mindi_boot_loader="NATIVE" 96 mindi_additional_mods="" 81 97 82 98 # -
branches/stable/mindi/distributions/freebsd/pkg-plist
r1039 r1060 1 1 etc/mindi/deplist.txt 2 etc/mindi/mindi.conf 3 etc/mindi/mindi.conf.dist 4 etc/mindi/mindi.conf.dist.md5 2 5 doc/ChangeLog 3 6 doc/INSTALL … … 13 16 @dirrm lib/mindi 14 17 @dirrm etc/mindi 18 @dirrm etc/mindi/mindi.d -
branches/stable/mindi/distributions/rpm/mindi.spec
r1047 r1060 60 60 %config(noreplace) %{_sysconfdir}/mindi/mindi.conf 61 61 %config(noreplace) %{_sysconfdir}/mindi/mindi.conf.dist 62 %config(noreplace) %{_sysconfdir}/mindi/mindi.conf.dist.md5 62 63 %doc ChangeLog INSTALL COPYING README TODO README.ia64 README.pxe README.busybox svn.log 63 64 %{_mandir}/man8/* -
branches/stable/mindi/install.sh
r1047 r1060 72 72 echo "Copying files ..." 73 73 install -m 644 isolinux.cfg msg-txt sys-disk.raw.gz isolinux-H.cfg syslinux.cfg syslinux-H.cfg dev.tgz $locallib/mindi 74 install -m 644 deplist.txt $conf75 74 install -m 644 distributions/conf/deplist.d/* $conf/deplist.d 76 75 install -m 444 distributions/conf/mindi.conf.dist $conf 76 md5sum $conf/mindi.conf.dist > $conf/mindi.conf.dist.md5 77 77 cat > $conf/mindi.conf << EOF 78 78 # … … 88 88 EOF 89 89 chmod 644 $conf/mindi.conf 90 91 cat > $conf/deplist.txt << EOF 92 # mindi additional dependency list 93 # 94 # NB: 95 # You have to give an absolute path 96 # If you want to add something, just add it on its own line. K.I.S.S. 97 98 EOF 99 chmod 644 $conf/deplist.txt 90 100 91 101 cp -af rootfs aux-tools $locallib/mindi -
branches/stable/mindi/mindi
r1059 r1060 36 36 37 37 MINDI_CONFIG_DIST="$MINDI_CONF/mindi.conf.dist" 38 if [ ! -f $MINDI_CONFIG_ CONF]; then39 echo "Unable to find $MINDI_CONFIG_ CONF. Please reinstall mindi"38 if [ ! -f $MINDI_CONFIG_DIST ]; then 39 echo "Unable to find $MINDI_CONFIG_DIST. Please reinstall mindi" 40 40 MindiExit -1 41 41 fi 42 md5sum --status -c "$MINDI_CONF/mindi.conf.dist.md5" 43 if [ $? -ne 0 ]; then 44 echo "$MINDI_CONF/mindi.conf.dist md5 checksum incorrect. Please reinstall mindi" 45 MindiExit -1 46 fi 42 47 . $MINDI_CONFIG_DIST 43 48 44 49 MINDI_CONFIG="$MINDI_CONF/mindi.conf" 45 50 if [ ! -f $MINDI_CONFIG ]; then 46 echo "No $MINDI_CONFIG file found using sensible values "51 echo "No $MINDI_CONFIG file found using sensible values from $MINDI_CONFIG_DIST" 47 52 else 48 echo "Using $MINDI_CONFIG as additional config file "53 echo "Using $MINDI_CONFIG as additional config file to $MINDI_CONFIG_DIST" 49 54 . $MINDI_CONFIG 50 55 fi … … 55 60 EXTRA_SPACE=$mindi_extra_space 56 61 IA64_BOOT_SIZE=$mindi_ia64_boot_size 57 DEPLIST_DIR="$ mindi_deplist_dir"58 # TBC 62 DEPLIST_DIR="$MINDI_CONF/deplist.d" 63 DEPLIST_FILE="$MINDI_CONF/$mindi_deplist_file" 59 64 WRITE_BOOT_FLOPPIES="$mindi_write_boot_floppy" 60 # TBC 61 WRITE_MINDI_CD="$mindi_write_cd" 62 # TBC 65 PROMPT_MAKE_CD_IMAGE="$mindi_write_cd" 66 USE_OWN_KERNEL="$mindi_use_own_kernel" 63 67 CACHE_LOC="$mindi_images_dir" 64 68 FORCE_DUAL_FLOPPIES="$mindi_dual_floppies" … … 84 88 # If "yes" mindi will automatically use your own kernel. 85 89 USE_OWN_KERNEL="no" 86 else87 PROMPT_WRITE_BOOT_FLOPPIES="no"88 PROMPT_MAKE_CD_IMAGE="no"89 USE_OWN_KERNEL="yes"90 90 fi 91 91 92 FLOPPY_MODS=" ide-floppy floppy"93 TAPE_MODS=" ht st osst ide-tape ide_tape"94 SCSI_MODS=" 3w-xxxx 53c7,8xx a100u2w a320raid aacraid advansys aha152x aha1542 aha1740 aic79xx aic79xx_mod aic7xxx aic7xxx_mod aic7xxx_old AM53C974 atp870u BusLogic cciss cpqfc dmx3191d dpt_i2o dtc eata eata_dma eata_pio fdomain gdth g_NCR5380 i2o_block i2o_core ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 qla2200 qla2300 qlogicfas qlogicfc qlogicisp raw1394 scsi_debug scsi_mod sd_mod seagate sg sim710 sr_mod sym53c416 sym53c8xx sym53c8xx_2 t128 tmscsim u14-34f ultrastor wd7000 vmhgfs"95 IDE_MODS=" ide ide-generic ide-detect ide-mod ide-disk ide-cd ide_cd ide-cs ide-core ide_core edd paride ata_piix libata via82cxxx generic nvidia ahci sata_nv"96 PCMCIA_MODS=" pcmcia_core ds yenta_socket"97 USB_MODS=" usb-storage usb-ohci usb-uhci usbcore usb_storage hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd usbkbd usbhid"98 CDROM_MODS="$TAPE_MODS $FLOPPY_MODS $IDE_MODS af_packet cdrom isocd isofs inflate_fs nls_iso8859-1 nls_cp437 sg sr_mod zlib_inflate$USB_MODS $PCMCIA_MODS"99 NET_MODS=" sunrpc nfs nfs_acl lockd loop mii 3c59x e100 bcm5700 bnx2 e1000 eepro100 ne2k-pci tg3 pcnet32 8139cp 8139too 8390 vmxnet vmnet"100 EXTRA_MODS="$CDROM_MODS vfat fat loop md-mod linear raid0 raid1 xor raid5 lvm-mod dm-mod dm-snapshot dm-zero dm-mirror jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfs_acl nfsd lockd sunrpc jbd mbcache"92 FLOPPY_MODS="$mindi_floppy_mods" 93 TAPE_MODS="$mindi_tape_mods" 94 SCSI_MODS="$mindi_scsi_mods" 95 IDE_MODS="$mindi_ide_mods" 96 PCMCIA_MODS="$mindi_pcmcia_mods" 97 USB_MODS="$mindi_usb_mods" 98 CDROM_MODS="$TAPE_MODS $FLOPPY_MODS $IDE_MODS $mindi_cdrom_mods $USB_MODS $PCMCIA_MODS" 99 NET_MODS="$mindi_net_mods" 100 EXTRA_MODS="$CDROM_MODS $mindi_extra_mods $mindi_additional_mods" 101 101 102 102 BOOT_MEDIA_MESSAGE="$mindi_boot_msg" 103 103 FDISK=$MINDI_SBIN/parted2fdisk 104 105 # Using a config file allow to overwrite some values106 MINDI_CONFIG="$MINDI_CONF/mindi.conf"107 if [ -f $MINDI_CONFIG ]; then108 . $MINDI_CONFIG109 fi110 104 111 105 # Now we can create what we nedd … … 251 245 biggienumber=$4 252 246 253 [ -d "$filename" ] && Die "Cannot chop up $filename: it's a directory. Please amend deplist.txtaccordingly."247 [ -d "$filename" ] && Die "Cannot chop up $filename: it's a directory. Please amend $DEPLIST_FILE accordingly." 254 248 mkdir -p $outdir 255 249 … … 415 409 if [ "$?" -ne "0" ] ; then 416 410 umount $mountpoint 417 Die "Tarball $tarball is too big for disk! (CODI)\n Tell Dev Team to adjust MAX_COMPRESSED_SIZE"411 Die "Tarball $tarball is too big for disk! (CODI)\nAdjust mindi_max_compressed_size in your $MINDI_CONFIG" 418 412 fi 419 413 [ "$diskno" -eq "$noof_disks" ] && echo "This is the last disk ($diskno=$noof_disks)" >> $mountpoint/LAST-DISK 420 414 umount $mountpoint || LogIt "Cannot umount (CODI)" 421 415 rmdir $mountpoint || LogIt "Cannot rmdir (CODI)" 422 }423 424 425 DidMondoCallMe() {426 local res427 428 res=0429 [ "`ps ax | grep -F "mondoarchive" | grep -v "grep"`" ] && res=$(($res+1))430 [ -f "/var/run/monitas-mondo.pid" ] && res=$(($res+1))431 [ "$res" -gt "1" ] && echo "yes"432 416 } 433 417 … … 462 446 463 447 # Creates a tar file containing all required files 464 for i in /etc/fstab/etc/lilo.conf /etc/raidtab $LOGFILE /var/log/mondo-archive.log ; do448 for i in $MY_FSTAB /etc/lilo.conf /etc/raidtab $LOGFILE /var/log/mondo-archive.log ; do 465 449 [ -e "$i" ] && cp -f $i $MINDI_TMP 2>> $LOGFILE 466 450 done … … 772 756 [ "$modres" -eq "3" ] && echo -en "\t|" 773 757 done 774 if [ " `DidMondoCallMe`" ] ; then758 if [ "$MONDO_SHARE" ] ; then 775 759 mkdir -p $bigdir/tmp 776 760 mkdir -p $bigdir/sbin … … 1250 1234 current_partition=$actual_dev 1251 1235 else 1252 Die "Your system uses a LABEL partition ($current_partition), but you lack the tool to support it.\nPlease replace labels with their correct devices in /etc/fstabor install findfs|blkid|vol_id"1236 Die "Your system uses a LABEL partition ($current_partition), but you lack the tool to support it.\nPlease replace labels with their correct devices in $MY_FSTAB or install findfs|blkid|vol_id" 1253 1237 fi 1254 1238 # This part tries to retrieve the correct device from a UUID line in /etc/fstab … … 1298 1282 current_partition=$actual_dev 1299 1283 else 1300 Die "Your system uses a UUID partition ($current_partition), but you lack the tool to support it.\nPlease replace labels with their correct devices in /etc/fstabor install findfs|blkid|vol_id"1284 Die "Your system uses a UUID partition ($current_partition), but you lack the tool to support it.\nPlease replace labels with their correct devices in $MY_FSTAB or install findfs|blkid|vol_id" 1301 1285 fi 1302 1286 else … … 1528 1512 OfferToMakeBootableISO() { 1529 1513 local i old_pwd 1530 if [ "$PROMPT_MAKE_CD_IMAGE" = "yes" ] && [ ! " `DidMondoCallMe`" ] ; then1514 if [ "$PROMPT_MAKE_CD_IMAGE" = "yes" ] && [ ! "$MONDO_SHARE" ] ; then 1531 1515 echo -en "Shall I make a bootable CD image? (y/[n]) " 1532 1516 read i … … 1550 1534 cp -f $j $k 2> /dev/null || Die "Failed to copy $j to $k" 1551 1535 cp -f $j $MINDI_TMP 2> /dev/null || Die "Failed to copy $j to $MINDI_TMP" 1552 cp -f $j $MONDO_ROOT 2>> $LOGFILE || Die "Failed to copy $j to $MONDO_ROOT"1536 [ "$MONDO_SHARE" ] && cp -f $j $MONDO_ROOT 2>> $LOGFILE || Die "Failed to copy $j to $MONDO_ROOT" 1553 1537 fi 1554 1538 done 1555 1539 MakeSyslinuxMessageFile $MINDI_TMP/iso/isolinux/message.txt 1556 1540 cp $kernelpath $MINDI_TMP/iso/isolinux/vmlinuz 2> /dev/null || Die "Cannot copy vmlinuz ($kernelpath) to mondo root ($MINDI_TMP/iso/isolinux/vmlinuz). Did you run out of disk space?" 1557 cp $kernelpath $MONDO_ROOT/vmlinuz 2> /dev/null || Die "Cannot copy vmlinuz ($kernelpath) to mondo root ($MONDO_ROOT/vmlinuz). Did you run out of disk space?"1541 [ "$MONDO_SHARE" ] && cp $kernelpath $MONDO_ROOT/vmlinuz 2> /dev/null || Die "Cannot copy vmlinuz ($kernelpath) to mondo root ($MONDO_ROOT/vmlinuz). Did you run out of disk space?" 1558 1542 cp $MINDI_TMP/mindi.rdz $MINDI_TMP/iso/isolinux/initrd.img 2>> $LOGFILE 1559 cp $MINDI_TMP/mindi.rdz $MONDO_ROOT/initrd.img 2>> $LOGFILE1543 [ "$MONDO_SHARE" ] && cp $MINDI_TMP/mindi.rdz $MONDO_ROOT/initrd.img 2>> $LOGFILE 1560 1544 [ -e "$iso_cfg_file" ] || Die "FIXME - unable to find $iso_cfg_file - this should never occur" 1561 1545 cd $MINDI_TMP/iso/isolinux … … 1571 1555 cd $MINDI_TMP/iso 1572 1556 if [ "$ARCH" != "ia64" ] ; then 1573 cp -f $MINDI_TMP/iso/isolinux/{isolinux.cfg,initrd.img,vmlinuz,isolinux.bin,message.txt} $MONDO_ROOT 2> /dev/null || Die "Cannot copy core files to ramdisk for boot disk. Did you run out of disk space?"1557 [ "$MONDO_SHARE" ] && cp -f $MINDI_TMP/iso/isolinux/{isolinux.cfg,initrd.img,vmlinuz,isolinux.bin,message.txt} $MONDO_ROOT 2> /dev/null || Die "Cannot copy core files to ramdisk for boot disk. Did you run out of disk space?" 1574 1558 fi 1575 1559 [ "$MONDO_SHARE" ] && cp -f $MONDO_SHARE/autorun . 2>> $LOGFILE … … 1607 1591 fi 1608 1592 if [ "$disksize" -gt "2880" ] ; then 1609 if [ " `DidMondoCallMe`" ] ; then1593 if [ "$MONDO_SHARE" ] ; then 1610 1594 if [ "$CDRECOVERY" != "yes" ] ; then 1611 1595 if [ -e "$MINDI_TMP/NFS-DEV" ] ; then … … 1702 1686 if [ "$CDRECOVERY" = "yes" ] ; then 1703 1687 echo -en "default=RESTORE\n" 1704 elif [ "$disksize" -gt "2880" ] && [ " `DidMondoCallMe`" ] ; then1688 elif [ "$disksize" -gt "2880" ] && [ "$MONDO_SHARE" ] ; then 1705 1689 if [ -e "$MINDI_TMP/NFS-DEV" ] ; then 1706 1690 echo -en "default=iso\n" … … 1723 1707 options="RESTORE expert" 1724 1708 elif [ "$disksize" -gt "2880" ] ; then 1725 if [ " `DidMondoCallMe`" ] ; then1709 if [ "$MONDO_SHARE" ] ; then 1726 1710 if [ -e "$MINDI_TMP/NFS-DEV" ] ; then 1727 1711 options="iso" … … 2021 2005 2022 2006 PrepareDataDiskImages() { 2023 local needlist bigdir minidir_root tardir diskdir imagesdir res i j k old_pwd lines 2007 local needlist bigdir minidir_root tardir diskdir imagesdir res i j k old_pwd lines lfiles 2024 2008 2025 2009 imagesdir=$1 … … 2032 2016 tardir=$MINDI_TMP/tardir 2033 2017 2034 lines=`grep -vx " *#.*" $MINDI_CONF/deplist.txt | grep -vx "" | wc -l` 2035 cat $MINDI_CONF/deplist.txt | GenerateGiantDependencyList $needlist $lines 2018 if [ -e "$DEPLIST_FILE" ]; then 2019 lfiles="$DEPLIST_FILE $DEPLIST_DIR/*" 2020 else 2021 lfiles="$DEPLIST_DIR/*" 2022 fi 2023 lines=`grep -vx " *#.*" $lfiles | grep -vx "" | wc -l` 2024 cat $lfiles | GenerateGiantDependencyList $needlist $lines 2036 2025 res=$? 2037 2026 if [ "$YOUR_KERNEL_SUCKS" ]; then … … 2069 2058 FindAndAddUserKeyboardMappingFile 2070 2059 mkdir -p $bigdir/tmp 2071 if [ " `DidMondoCallMe`" ] ; then2060 if [ "$MONDO_SHARE" ] ; then 2072 2061 MakeMondoConfigFile $MINDI_TMP/mondo-restore.cfg 2073 2062 cp -f $MINDI_TMP/mondo-restore.cfg $bigdir/tmp &> /dev/null … … 2109 2098 if [ -e "$MONDO_SHARE/restore-scripts" ] ; then 2110 2099 cp -Rdf $MONDO_SHARE/restore-scripts/* . 2>> $LOGFILE 2111 [ "$?" -ne "0" ] && [ "`DidMondoCallMe`" ] &&Die "Cannot find/install $MONDO_SHARE/restore-scripts"2100 [ "$?" -ne "0" ] && Die "Cannot find/install $MONDO_SHARE/restore-scripts" 2112 2101 fi 2113 2102 [ -d "/lib/dev-state" ] && cp --parents -pRdf /lib/dev-state . 2>> $LOGFILE … … 2118 2107 noof_disks=$? 2119 2108 [ "$noof_disks" -eq "0" ] && Die "Too much stuff!" 2120 # if [ "$noof_disks" -ge "8" ] ; then2121 # LogIt "You are putting a ludicrously large amount of data on these disks."2122 # LogIt "I shall therefore double EXTRA_SPACE, just in case your ramdisk is too small."2123 # EXTRA_SPACE=$(($EXTRA_SPACE*2))2124 # fi2125 2109 MakeMountlist $MINDI_TMP/mountlist.txt 2126 2110 mkdir -p $minidir_root/$noof_disks/tmp 2127 2111 cp -f $MINDI_TMP/mountlist.txt $minidir_root/$noof_disks/tmp/mountlist.txt 2> /dev/null || Die "Cannot copy mountlist.txt from $MINDI_TMP to data disk" 2128 [ " `DidMondoCallMe`" ] && cp -f $minidir_root/$noof_disks/tmp/mountlist.txt $MINDI_TMP/. 2>> $LOGFILE2112 [ "$MONDO_SHARE" ] && cp -f $minidir_root/$noof_disks/tmp/mountlist.txt $MINDI_TMP/. 2>> $LOGFILE 2129 2113 [ $LVM != "false" ] && $MINDI_LIB/analyze-my-lvm > $minidir_root/$noof_disks/tmp/i-want-my-lvm || LVM="false" 2130 2114 cat $minidir_root/$noof_disks/tmp/mountlist.txt >> $LOGFILE … … 2588 2572 dd if=/dev/zero of=$mountpoint/zero &> /dev/null 2589 2573 rm -f $mountpoint/zero 2590 if [ " `DidMondoCallMe`" ] ; then2574 if [ "$MONDO_SHARE" ] ; then 2591 2575 MakeMondoConfigFile $mountpoint/tmp/mondo-restore.cfg 2592 2576 cp -f $mountpoint/tmp/mondo-restore.cfg $MINDI_TMP &> /dev/null … … 2646 2630 cd $minidir_root/all 2647 2631 size_of_all_tools=`du -sk . | cut -f1` 2648 if [ " `DidMondoCallMe`" ] ; then2632 if [ "$MONDO_SHARE" ] ; then 2649 2633 for q in filelist.full.gz biggielist.txt ; do 2650 2634 [ ! -e "$MINDI_TMP/$q" ] && Die "Cannot find $MINDI_TMP/$q" … … 2756 2740 FindLiloBinary 2757 2741 fi 2758 # BERLIOS: Remove as too dangerous and now useless2759 #grep -F " $MINDI_TMP " /proc/mounts | grep -F tmpfs > /dev/null 2> /dev/null && MINDI_TMP=/home/tmpmondo && mkdir -p $MINDI_TMP && LogIt "Changing MINDI_TMP to $MINDI_TMP because you're using tmpfs for /tmp\n" ; # tmpfs doesn't like Mindi and /tmp, for some reason2760 2742 trap "Aborted" SIGTERM 2761 2743 DONE="\r\t\t\t\t\t\t\t\tDone. " 2762 2744 CHOPSIZE=240 2763 2745 BIGNO=0 2764 MAX_COMPRESSED_SIZE=1300 2765 kernelpath="" 2766 MONDO_ROOT=/var/cache/mondo 2767 mkdir -p $MONDO_ROOT 2746 MAX_COMPRESSED_SIZE="$mindi_max_compressed_size" 2747 kernelpath="$mindi_kernel" 2748 if [ "$kernelpath" = "NATIVE" ]; then 2749 kernelpath="" 2750 fi 2751 USE_LILO=no 2768 2752 2769 2753 if [ -d "/proc/lvm" ]; then … … 2788 2772 lsmod >> $LOGFILE 2789 2773 echo "-------------" >> $LOGFILE 2790 2791 if [ "$#" -ge "2" ] ; then 2792 if [ "$1" = "--max-compressed-size" ] ; then 2793 MAX_COMPRESSED_SIZE=$2 2794 shift; shift 2795 fi 2796 fi 2774 echo "Liste of extra modules is:" >> $LOGFILE 2775 echo "$EXTRA_MODS" >> $LOGFILE 2776 echo "-------------" >> $LOGFILE 2777 2797 2778 2798 2779 FLOPPY_WAS_MOUNTED="" … … 2821 2802 MindiExit 0 2822 2803 elif [ "$#" -ge "9" ] && [ "$1" = "--custom" ] ; then 2804 [ ! "$MONDO_SHARE" ] && Die "--custom is reserved for mondoarchive calls" 2823 2805 MONDO_TMP=$2 2824 2806 # Change MINDI_TMP for the one provided by mondo … … 2914 2896 2915 2897 [ -e "$iso_cfg_file" ] || Die "Cannot find $iso_cfg_file" 2916 if [ ! " `DidMondoCallMe`" ] ; then2898 if [ ! "$MONDO_SHARE" ] ; then 2917 2899 LogIt "Mindi Linux mini-distro generator v$MINDI_VERSION" 2918 2900 LogIt "Latest Mindi is available from http://www.mondorescue.org" … … 2954 2936 2955 2937 if [ "$kernelpath" = "" ] ; then 2956 [ " `DidMondoCallMe`" ] && Die "Please use -k <path> to specify kernel."2938 [ "$MONDO_SHARE" ] && Die "Please use -k <path> to specify kernel." 2957 2939 echo -en "Do you want to use your own kernel to build the boot disk ([y]/n) ?" 2958 2940 read ch … … 2971 2953 fi 2972 2954 fi 2973 if [ ! " `DidMondoCallMe`" ]; then2955 if [ ! "$MONDO_SHARE" ] && [ $INTERACTIVE = "yes" ]; then 2974 2956 echo -en "Would you like to use LILO (instead of syslinux)\nfor your boot CD/floppies (y/[n]) ?" 2975 2957 read ch 2976 if [ "$ch" != "y" ] && [ "$ch" != "Y" ] ; then 2977 USE_LILO=no 2978 else 2958 if [ "$ch" = "y" ] || [ "$ch" = "Y" ] ; then 2979 2959 USE_LILO=yes 2980 2960 fi … … 3034 3014 ...Or type 'memtest' to test your PC's RAM thoroughly.\n" 3035 3015 3036 if [ ! " `DidMondoCallMe`" ] ; then3016 if [ ! "$MONDO_SHARE" ] ; then 3037 3017 ListImagesForUser $CACHE_LOC 3038 3018 boot_dev=/dev/fd0u1722 -
branches/stable/mondo-doc/mindi.8
r978 r1060 33 33 .BI "mindi --makemountlist "file 34 34 .br 35 .BI "mindi [--max-compressed-size "max "] --custom " parameters35 .BI "mindi --printvar "variable 36 36 .SH DESCRIPTION 37 37 .PP … … 64 64 .SH OPTIONS 65 65 .TP 66 .B R"-v"| " --version"| " -V"| " -version"67 Prints the version of mindi.68 .TP 69 .B --findkernel70 Finds the image of the running kernel in the file system.66 .BI "-v"| " --version"| " -V"| " -version" 67 .RI Prints the version of mindi. 68 .TP 69 .BI "--findkernel" 70 .RI Finds the image of the running kernel in the file system. 71 71 .TP 72 72 .BI "--makemountlist "file 73 73 .RI "Creates a mount list and writes it to file "file ". 74 74 .TP 75 .BI "-- max-compressed-size "max76 Maximum size for disk image in KB. 75 .BI "--printvar "variable 76 .RI "prints the value of the variable (useful for mondo-archive and debug)" 77 77 .TP 78 78 .BI "--custom " parameters 79 Provide all required parameters to 80 .B mindi 81 for non-interactive calling. This usually means a call from 79 .RI "Provide all required parameters to" 80 .B mindi 81 .RI "for non-interactive calling. This usually means a call from" 82 82 .BR "mondoarchive(8)". 83 83 The following parameters are used: … … 120 120 .br 121 121 19) make non-bootable [yes|no] 122 .br 123 20) use gzip [yes|no] 122 124 .br 123 125 (Blank parameters must be specified as "" on the command line.) … … 135 137 reports. 136 138 .TP 139 .I /etc/mindi/deplist.d 140 Files containing the list of files to be included on boot/root disks. 141 .TP 137 142 .I /etc/mindi/deplist.txt 138 List of files to be included on boot/root disks.143 List of additional files to be included on boot/root disks. 139 144 .TP 140 145 .I /var/cache/mindi/N.tar.gz … … 168 173 called 169 174 .B mindi.conf 170 which overwrites default values by setting up the following variables: 171 .TP 172 .I TMPDIR 173 .B (default /tmp): directory to create temporary files 174 .br 175 .TP 176 .I EXTRA_SPACE 177 .B (default 24576): increase if you run out of ramdisk space 178 .br 179 .TP 180 .I IA64_BOOT_SIZE 181 .B (default 8192): size of the ia64 boot disk 182 .br 183 .TP 184 .I CACHE_LOC 185 .B (default /var/cache/mindi): directory where boot/root files 186 and iso are generated 187 .br 188 WARNING: This directory is erased before usage 175 which overwrites default values described in 176 .B mindi.conf.dist 177 in the same directory. 189 178 .br 190 179 .SH "SEE ALSO"
Note:
See TracChangeset
for help on using the changeset viewer.