Changeset 1998 in MondoRescue
- Timestamp:
- Jul 10, 2008, 5:48:47 PM (17 years ago)
- Location:
- branches/2.2.7/mindi
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.7/mindi/mindi
r1993 r1998 1621 1621 echo -en "Kernel size = `du -sk $kernelpath | cut -f1` K\nRamdisk free = $free_space K\n\ 1622 1622 Sorry, your kernel is too big for your image.\n" >> $LOGFILE 1623 rm -f $mountpoint/vmlinuz1623 [ "$mountpoint" != "" ] && rm -f $mountpoint/vmlinuz 1624 1624 cd $old_pwd 1625 1625 umount $mountpoint || Die "Cannot unmount mountpoint ($mountpoint)" 1626 1626 rmdir $mountpoint || LogIt "Cannot rmdir (PBDI)" 1627 1627 # losetup /dev/loop0 -d 1628 rm -f $imagefile1628 [ "$imagefile" != "" ] && rm -f $imagefile 1629 1629 return 0 1630 1630 fi … … 1634 1634 echo "Max kernel size on $BOOT_SIZE KB image (est'd) = $max_kernel_size K" >> $LOGFILE 1635 1635 # make it bootable 1636 rm -f $mountpoint/zero1636 [ "$mountpoint" != "" ] && rm -f $mountpoint/zero 1637 1637 [ -e "$MINDI_LIB/memdisk" ] && cp -f $MINDI_LIB/memdisk $mountpoint 2>> $LOGFILE 1638 1638 if [ "$KERN_DISK_MADE" ] ; then … … 1653 1653 echo -en "...failed\n" 1654 1654 LogIt $BOOT_SIZE"KB boot disk was NOT created\n" 1655 rm -f $imagefile1655 [ "$imagefile" != "" ] && rm -f $imagefile 1656 1656 fi 1657 1657 [ "$retval" -ne "0" ] && LogIt "PrepareBootDiskImage() is returning nonzero" … … 1712 1712 echo -en "Kernel size = `du -sk $kernelpath | cut -f1` K\nRamdisk free = $free_space K\n\ 1713 1713 Sorry, your kernel is too big for your image.\n" >> $LOGFILE 1714 rm -f $mountpoint/vmlinuz1714 [ "$mountpoint" != "" ] && rm -f $mountpoint/vmlinuz 1715 1715 cd $old_pwd 1716 1716 umount $mountpoint || Die "Cannot unmount mountpoint ($mountpoint)" 1717 1717 rmdir $mountpoint || LogIt "Cannot rmdir (PBDI)" 1718 1718 1719 rm -f $imagefile1719 [ "$imagefile" != "" ] && rm -f $imagefile 1720 1720 return 0 1721 1721 fi … … 1726 1726 1727 1727 # make it bootable 1728 rm -f $mountpoint/zero1728 [ "$mountpoint" != "" ] && rm -f $mountpoint/zero 1729 1729 mkdir -p $mountpoint/etc 1730 1730 [ -e "$MINDI_LIB/memdisk" ] && cp -f $MINDI_LIB/memdisk $mountpoint 2>> $LOGFILE … … 1736 1736 echo -en "...$DONE\n" 1737 1737 if [ "$KERN_DISK_MADE" ] ; then 1738 rm -f $imagefile1738 [ "$imagefile" != "" ] && rm -f $imagefile 1739 1739 LogIt "$BOOT_SIZE KB boot disks were created OK\n" 1740 1740 fi … … 1742 1742 echo -en "...failed\n" 1743 1743 LogIt $BOOT_SIZE"KB boot disk was NOT created\n" 1744 rm -f $imagefile1744 [ "$imagefile" != "" ] && rm -f $imagefile 1745 1745 fi 1746 1746 [ "$retval" -ne "0" ] && LogIt "PrepareBootDiskImage() is returning nonzero" … … 2162 2162 if [ "`echo $i | cut -c1`" = "/" ]; then 2163 2163 j=`echo $i | cut -c2-` 2164 rm -f $j2164 [ "$j" != "" ] && rm -f $j 2165 2165 fi 2166 2166 done -
branches/2.2.7/mindi/rootfs/sbin/install-additional-tools
r1997 r1998 22 22 if [ ! "$GROOVY" ] ; then 23 23 LogIt "I'm not groovy!" 24 exit 1 25 fi 26 27 if [ $mountdir = "/" ]; then 28 LogIt "mountdir shouldn't be /" 24 29 exit 1 25 30 fi … … 82 87 LogIt "Exiting install-additional-tools" 83 88 exit 0 84 85 # exit $res86
Note:
See TracChangeset
for help on using the changeset viewer.