Changeset 1693 in MondoRescue for branches/stable/mindi
- Timestamp:
- Oct 21, 2007, 3:06:22 AM (17 years ago)
- Location:
- branches/stable/mindi
- Files:
-
- 2 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/install.sh
r1619 r1693 69 69 70 70 echo "Creating target directories ..." 71 install -m 755 -d $conf $conf/deplist.d $locallib/mindi $MANDIR $local/sbin $ DOCDIR $CACHEDIR71 install -m 755 -d $conf $conf/deplist.d $locallib/mindi $MANDIR $local/sbin $CACHEDIR # $DOCDIR 72 72 73 73 echo "Copying files ..." … … 133 133 134 134 install -m 644 mindi.8 $MANDIR 135 install -m 644 ChangeLog COPYING README README.busybox README.ia64 README.pxe TODO INSTALL svn.log $DOCDIR135 #install -m 644 ChangeLog COPYING README README.busybox README.ia64 README.pxe TODO INSTALL svn.log $DOCDIR 136 136 137 137 if [ "_$PREFIX" = "_" ] && [ ! -f $locallib/mindi/rootfs/bin/busybox ]; then … … 160 160 161 161 if [ "$PKGBUILDMINDI" != "true" ]; then 162 chown -R root:root $locallib/mindi $conf $DOCDIR162 chown -R root:root $locallib/mindi $conf # $DOCDIR 163 163 chown root:root $local/sbin/mindi $MANDIR/mindi.8 $locallib/mindi/analyze-my-lvm $local/sbin/parted2fdisk.pl 164 164 if [ "$ARCH" = "ia64" ] ; then … … 168 168 169 169 # Special case for SuSE family where doc is put elsewhere in the RPM 170 if [ -e /etc/SuSE-release ]; then171 rm -rf $DOCDIR172 fi170 # if [ -e /etc/SuSE-release ]; then 171 # rm -rf $DOCDIR 172 # fi 173 173 174 174 # Special case for Debian family where doc is put elsewhere in the DEB 175 if [ -e /etc/debian_version ]; then176 rm -rf $DOCDIR177 fi175 # if [ -e /etc/debian_version ]; then 176 # rm -rf $DOCDIR 177 # fi 178 178 179 179 exit 0 -
branches/stable/mindi/mindi
r1685 r1693 26 26 # run this command. 27 27 28 MINDI_REV= RRR29 MINDI_VER= VVV28 MINDI_REV=PBREV 29 MINDI_VER=PBVER 30 30 31 31 MINDI_VERSION=${MINDI_VER}-r$MINDI_REV … … 1628 1628 echo "Unable to access $USBDEVICE" | tee -a $LOGFILE 1629 1629 echo "Make sure your USB device is pluged in" | tee -a $LOGFILE 1630 MindiExit -11630 exit -1 1631 1631 fi 1632 1632 echo -en "." 1633 echo "Unmounting $USBDEVICE just in case" >> $LOGFILE 1634 umount $USBDEVICE 2>&1 >> $LOGFILE 1633 1635 echo "Erasing $USBDEVICE" >> $LOGFILE 1634 1636 $FDISK $USBDEVICE 2>&1 >> $LOGFILE << EOF … … 1656 1658 echo -en "." 1657 1659 echo "Creating a vfat filesystem on $USBPART" >> $LOGFILE 1658 mk fs -t vfat$USBPART 2>&1 >> $LOGFILE1660 mkdosfs -F 32 $USBPART 2>&1 >> $LOGFILE 1659 1661 if [ $? -ne 0 ]; then 1660 1662 echo "Unable to create a vfat filesystem on $USBPART" | tee -a $LOGFILE … … 1673 1675 fi 1674 1676 echo -en "." 1675 mkdir -p $MINDI_TMP/usb/ {images,archives}1676 cp -f $1/*.img $1/*.gz $MINDI_TMP/usb/images 2>> $LOGFILE || LogIt "OfferToMakeBootableUSB: Cannot copy $i to $MINDI_TMP/ iso/images"1677 mkdir -p $MINDI_TMP/usb/images 1678 cp -f $1/*.img $1/*.gz $MINDI_TMP/usb/images 2>> $LOGFILE || LogIt "OfferToMakeBootableUSB: Cannot copy $i to $MINDI_TMP/usb/images" 1677 1679 echo -en "." 1678 1680 old_pwd=`pwd` … … 1698 1700 cp $MINDI_TMP/mindi.rdz $MINDI_TMP/usb/initrd.img 2>> $LOGFILE 1699 1701 echo -en "." 1700 if [ _"$MONDO_SHARE" != _"" ]; then1701 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?"1702 cp $MINDI_TMP/mindi.rdz $MONDO_ROOT/initrd.img 2> /dev/null || Die "Cannot copy mindi.rdz ($MINDI_TMP) to mondo root ($MONDO_ROOT/initrd.img). Did you run out of disk space?"1703 1704 fi1705 echo -en "."1706 1702 [ -e "$iso_cfg_file" ] || Die "FIXME - unable to find $iso_cfg_file - this should never occur" 1707 1703 cat $sys_cfg_file | HackSyslinuxFile $ramdisk_size $MINDI_TMP/usb > syslinux.cfg || Die "Cannot copy syslinux.cfg from mindi_home to $MINDI_TMP/usb - did you run out of disk space?" … … 1714 1710 if [ "$ARCH" != "ia64" ] ; then 1715 1711 if [ _"$MONDO_SHARE" != _"" ]; then 1716 cp -f $MINDI_TMP/usb/{syslinux.cfg,initrd.img,vmlinuz,message.txt} $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?"1717 1712 cp -f $MONDO_SHARE/autorun $MONDO_ROOT 2>> $LOGFILE 1718 1713 fi … … 1734 1729 fi 1735 1730 echo -en "." 1736 #1737 # If mondoarchive, then tranfer $MINDI_CACHE content to the USB device1738 # and mount that device under that mountpoint instead1739 # Has to be done at the end here.1740 #1741 if [ _"$MONDO_SHARE" != _"" ]; then1742 mount $USBPART $MINDI_TMP/usb 2>> $LOGFILE1743 mv $MINDI_CACHE/* $MINDI_TMP/usb1744 umount $MINDI_TMP/usb1745 mount $USBPART $MINDI_CACHE1746 fi1747 1731 } 1748 1732 … … 3123 3107 fi 3124 3108 3125 if [ "$PROMPT_MAKE_USB_IMAGE" = "yes" ] ; then3109 if [ "$PROMPT_MAKE_USB_IMAGE" = "yes" ] && [ "$USBDEVICE" != "" ]; then 3126 3110 LogIt "Including the generation of a Bootable USB device on $USBDEVICE" 3127 3111 fi
Note:
See TracChangeset
for help on using the changeset viewer.