Changeset 241 in MondoRescue
- Timestamp:
- Dec 20, 2005, 2:17:23 AM (19 years ago)
- Location:
- branches/2.05
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.05/mindi/install.sh
r237 r241 30 30 echo "mindi $MINDIVER will be installed under $local" 31 31 32 # sles9 needs that 33 if [ "_$DOCDIR" = "_" ]; then 34 DOCDIR=$local/share/doc/mindi-$MINDIVER 35 fi 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 ..." … … 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 -
branches/2.05/mindi/mindi.spec
r237 r241 78 78 79 79 %post 80 %{__chmod} 755 %{_libdir}/mindi/aux-tools/sbin/* %{_libdir}/mindi/rootfs/bin/* %{_libdir}/mindi/rootfs/sbin/* 80 for i in %{_libdir}/mindi/aux-tools/sbin/* %{_libdir}/mindi/rootfs/bin/* %{_libdir}/mindi/rootfs/sbin/* ; do 81 if [ ! -h $i ]; then 82 %{__chmod} 755 $i 83 fi 84 done 81 85 if [ -f /usr/local/sbin/mindi ]; then 82 86 echo "WARNING: /usr/local/sbin/mindi exists. You should probably remove your manual mindi installation !" -
branches/2.05/mindi/rootfs/sbin/init
r232 r241 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 -
branches/2.05/mondo/mondo.spec
r237 r241 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.