- Timestamp:
- Dec 20, 2005, 10:38:54 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mindi/install.sh
r238 r244 28 28 29 29 MINDIVER=`cat VERSION` 30 echo "mindi $MINDIVER will be installed under $local" 30 MINDIREV=`cat REVISION` 31 echo "mindi ${MINDIVER}-r${MINDIREV} will be installed under $local" 32 33 if [ "_$DOCDIR" = "_" ]; then 34 DOCDIR=$local/share/doc/mindi-$MINDIVER 35 fi 31 36 32 37 echo "Creating target directories ..." 33 install -m 755 -d $conf $local/lib/mindi $local/share/man/man8 $local/sbin $ local/share/doc/mindi-$MINDIVER38 install -m 755 -d $conf $local/lib/mindi $local/share/man/man8 $local/sbin $DOCDIR 34 39 35 40 echo "Copying files ..." … … 43 48 44 49 if [ "$RPMBUILDMINDI" = "true" ]; then 45 sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=/usr~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=/etc/mindi~" mindi > $local/sbin/mindi50 sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=/usr~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=/etc/mindi~" -e "s~^MINDI_VER=VVV~MINDI_VER=$MINDIVER~" -e "s~^MINDI_REV=RRR~MINDI_REV=$MINDIREV~" mindi > $local/sbin/mindi 46 51 else 47 sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$local~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$conf~" mindi > $local/sbin/mindi52 sed -e "s~^MINDI_PREFIX=XXX~MINDI_PREFIX=$local~" -e "s~^MINDI_CONF=YYY~MINDI_CONF=$conf~" -e "s~^MINDI_VER=VVV~MINDI_VER=$MINDIVER~" -e "s~^MINDI_REV=RRR~MINDI_REV=$MINDIREV~" mindi > $local/sbin/mindi 48 53 fi 49 54 chmod 755 $local/sbin/mindi … … 51 56 52 57 install -m 644 mindi.8 $local/share/man/man8 53 install -m 644 CHANGES COPYING README README.busybox README.ia64 README.pxe TODO INSTALL $ local/share/doc/mindi-$MINDIVER58 install -m 644 CHANGES COPYING README README.busybox README.ia64 README.pxe TODO INSTALL $DOCDIR 54 59 55 60 ARCH=`/bin/arch` … … 98 103 99 104 if [ "$RPMBUILDMINDI" != "true" ]; then 100 chown -R root:root $local/lib/mindi $conf/mindi $conf $ local/share/doc/mindi-$MINDIVER105 chown -R root:root $local/lib/mindi $conf/mindi $conf $DOCDIR 101 106 chown root:root $local/sbin/mindi $local/share/man/man8/mindi.8 $local/sbin/analyze-my-lvm $local/sbin/parted2fdisk.pl 102 107 if [ "$ARCH" = "ia64" ] ; then -
trunk/mindi/mindi
r238 r244 26 26 # run this command. 27 27 28 MINDI_REV= `echo '$Rev$' | awk '{print $2}'`29 MINDI_VER= `cat VERSION`28 MINDI_REV=RRR 29 MINDI_VER=VVV 30 30 31 31 MINDI_VERSION=${MINDI_VER}-r$MINDI_REV … … 59 59 FLOPPY_MODS="ide-floppy floppy" 60 60 TAPE_MODS="ht st osst ide-tape ide_tape" 61 SCSI_MODS="3c59x 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 ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 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 "61 SCSI_MODS="3c59x 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 ide-scsi ieee1394 imm in2000 initio ips iscsi isp megaraid mptbase mptscsih NCR53c406a ncr53c8xx nsp32 pas16 pci2000 pci2220i pcmcia ppa psi240i qla1280 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" 62 62 63 63 # ide-probe-mod … … 66 66 USB_MODS="usb-storage usb-ohci usb-uhci usbcore usb_storage hid uhci_hcd ehci_hcd uhci-hcd ehci-hcd usbkbd" 67 67 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" 68 NET_MODS="sunrpc nfs nfsacl lockd loop mii e100 bcm5700 e1000 eepro100 tg3 pcnet32 "68 NET_MODS="sunrpc nfs nfsacl lockd loop mii e100 bcm5700 e1000 eepro100 tg3 pcnet32 vmxnet" 69 69 EXTRA_MODS="$CDROM_MODS vfat fat loop linear raid0 raid1 raid5 lvm-mod dm-mod jfs xfs xfs_support pagebuf reiserfs ext2 ext3 minix nfs nfsd lockd sunrpc jbd" 70 70 LOGFILE=/var/log/mindi.log -
trunk/mindi/mindi.spec
r238 r244 11 11 %define version VVV 12 12 %define mrel 1 13 %define docname %{name}-%{version} 14 %define src %{name}-%{version}.tgz 13 15 14 16 %if %is_redhat 15 %define src %{name}-%{version}.tgz16 17 Group: Applications/Archiving 17 18 Autoreq: 0 … … 31 32 32 33 %if %is_suse 33 %define src %{name}-%{version}.tgz34 34 Group: Archiving/Backup 35 %define docname %{name} 35 36 %endif 36 37 … … 71 72 export CONFDIR=${RPM_BUILD_ROOT}%{_sysconfdir} 72 73 export RPMBUILDMINDI="true" 74 export DOCDIR=${RPM_BUILD_ROOT}${RPM_DOC_DIR}/%{docname} 73 75 74 76 ./install.sh … … 78 80 79 81 %post 80 %{__chmod} 755 %{_libdir}/mindi/aux-tools/sbin/* %{_libdir}/mindi/rootfs/bin/* %{_libdir}/mindi/rootfs/sbin/* 82 for i in %{_libdir}/mindi/aux-tools/sbin/* %{_libdir}/mindi/rootfs/bin/* %{_libdir}/mindi/rootfs/sbin/* ; do 83 if [ ! -h $i ]; then 84 %{__chmod} 755 $i 85 fi 86 done 81 87 if [ -f /usr/local/sbin/mindi ]; then 82 88 echo "WARNING: /usr/local/sbin/mindi exists. You should probably remove your manual mindi installation !" -
trunk/mindi/rootfs/sbin/init
r236 r244 256 256 cd $GROOVY 257 257 [ "$1" != "" ] && tapedev=$1 258 [ ! "$tapedev" ] && tapedev=` cat /tmp/mondo-restore.cfg | grep media-dev| tr -s ' ' ' ' | cut -d' ' -f2`258 [ ! "$tapedev" ] && tapedev=`grep media-dev /tmp/mondo-restore.cfg | tr -s ' ' ' ' | cut -d' ' -f2` 259 259 # tar -zxf $tapedev 260 260 dd if=$tapedev bs=32k count=1024 | tar -zx 261 261 res=$? 262 262 if [ "$res" -eq "0" ] ; then 263 cat /tmp/mondo-restore.cfg | grep -v media-dev> /tmp/mr.cfg263 grep -v media-dev /tmp/mondo-restore.cfg > /tmp/mr.cfg 264 264 echo "media-dev $tapedev" >> /tmp/mr.cfg 265 265 cp -f /tmp/mr.cfg /tmp/mondo-restore.cfg … … 442 442 vgscan 443 443 fi 444 cat /tmp/i-want-my-lvm | grep -E "^#.*vgchange"| sed s/#// > /tmp/start-lvm444 grep -E "^#.*vgchange" /tmp/i-want-my-lvm | sed s/#// > /tmp/start-lvm 445 445 chmod +x /tmp/start-lvm 446 446 echo -en "Starting LVM's..." … … 476 476 StartRaids() { 477 477 local raid_devices i 478 raid_devices=` cat /tmp/mountlist.txt | grep /dev/md| cut -d' ' -f1`478 raid_devices=`grep /dev/md /tmp/mountlist.txt | cut -d' ' -f1` 479 479 for i in $raid_devices ; do 480 if cat /proc/mdstat | grep `basename $i`> /dev/null 2> /dev/null ; then480 if grep `basename $i` /proc/mdstat > /dev/null 2> /dev/null ; then 481 481 LogIt "$i is started already; no need to run 'raidstart $i'" 1 482 482 else … … 503 503 local res 504 504 mount | grep /mnt/cdrom && return 0 505 [ "` cat /tmp/mondo-restore.cfg | grep "backup_media_type"| grep "cdstream"`" ] && return505 [ "`grep "backup_media_type" /tmp/mondo-restore.cfg | grep "cdstream"`" ] && return 506 506 LogIt "Trying to mount CD-ROM a 2nd time..." 507 507 find-and-mount-cdrom --second-try … … 626 626 else 627 627 if [ -e "/sbin/start-nfs" ]; then 628 if [ "` cat /proc/cmdline | grep -i pxe`" ]; then628 if [ "`grep -i pxe /proc/cmdline`" ]; then 629 629 LogIt "PXE boot found" 630 630 fi … … 633 633 imgname="mondorescue" 634 634 fi 635 if [ "` cat /proc/cmdline | grep -i prefix`" ] ; then635 if [ "`grep -i prefix /proc/cmdline`" ] ; then 636 636 for i in `cat /proc/cmdline` ; do 637 637 if [ "`echo $i | grep -i prefix`" ] ; then … … 678 678 sleep 2 679 679 #clear 680 if [ -e "/dev/md0" ] && [ ! -e "/dev/md/0" ] && [ "` cat /tmp/mountlist.txt | grep /dev/md/`" != "" ] ; then680 if [ -e "/dev/md0" ] && [ ! -e "/dev/md/0" ] && [ "`grep /dev/md/ /tmp/mountlist.txt`" != "" ] ; then 681 681 LogIt "Creating /dev/md/* softlinks just in case." 1 682 682 mkdir -p /dev/md … … 690 690 [ -e "/tmp/mountlist.txt" ] && cp -f /tmp/mountlist.txt /tmp/mountlist.original 691 691 692 if ! [ "` cat /proc/cmdline | grep -i "pxe"`" ] ; then692 if ! [ "`grep -i "pxe" /proc/cmdline`" ] ; then 693 693 res="`cat /mnt/cdrom/archives/THIS-CD-NUMBER 2> /dev/null`" 694 694 [ "$res" != "1" ] && [ "$res" != "" ] && Die "This is CD #$res in the series. Please insert CD #1." … … 705 705 706 706 lsmod > /tmp/ramdisk-lsmod.txt 2> /dev/null 707 c at /tmp/original-lsmod.txt /tmp/original-lsmod.txt /tmp/ramdisk-lsmod.txt | cut -d' ' -f1| sort | uniq -d > /tmp/missing-modules.txt707 cut -d' ' -f1 /tmp/original-lsmod.txt /tmp/original-lsmod.txt /tmp/ramdisk-lsmod.txt | sort | uniq -d > /tmp/missing-modules.txt 708 708 echo "Warning - these modules did not make it onto the ramdisk" >> $LOGFILE 709 709 cat /tmp/missing-modules.txt >> $LOGFILE -
trunk/mondo/mondo.spec
r238 r244 51 51 Requires: mindi >= 1.05, bzip2 >= 0.9, afio, mkisofs, binutils, elilo, newt >= 0.50, slang >= 1.4.1, buffer, parted 52 52 %else 53 Requires: mindi >= 1.05, bzip2 >= 0.9, afio, mkisofs, binutils, syslinux >= 1.52, newt >= 0.50, slang >= 1.4.1, cdrecord,buffer53 Requires: mindi >= 1.05, bzip2 >= 0.9, afio, mkisofs, binutils, syslinux >= 1.52, newt >= 0.50, slang >= 1.4.1, buffer 54 54 %endif 55 55
Note:
See TracChangeset
for help on using the changeset viewer.