- Timestamp:
- Jan 10, 2006, 9:51:24 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mindi/mindi
r286 r292 1541 1541 [ ! -e "$data_dev" ] && Die "Cannot find $data_dev - is your Linux distro broken?" 1542 1542 i=`find $imagesdir -type f | fgrep "/mindi-root.1" 2> /dev/null` 1543 j=`find $imagesdir -type f | fgrep "/mindi-boot" | fgrep -v 2880`1543 j=`find $imagesdir -type f | fgrep "/mindi-boot" | egrep -v '2880|5760'` 1544 1544 # echo "i=$i" 1545 1545 # echo "j=$j" … … 1755 1755 options="" 1756 1756 if [ "$ARCH" != "ia64" ] ; then 1757 echo -en "boot=/dev/loop0\ndisk=/dev/loop0\n"1757 echo -en "boot=/dev/loop0\ndisk=/dev/loop0\n" 1758 1758 fi 1759 1759 if [ "$disksize" -eq "2880" ] ; then 1760 echo -en "bios=0x00\nsectors=36\nheads=2\ncylinders=80\n"1760 echo -en "bios=0x00\nsectors=36\nheads=2\ncylinders=80\n" 1761 1761 elif [ "$disksize" -eq "1722" ] ; then 1762 echo -en "bios=0x00\nsectors=21\nheads=2\ncylinders=82\n"1762 echo -en "bios=0x00\nsectors=21\nheads=2\ncylinders=82\n" 1763 1763 elif [ "$disksize" -gt "2880" ] ; then 1764 1764 /bin/true 1765 1765 else 1766 echo -en "bios=0x00\nsectors=18\nheads=2\ncylinders=80\n"1766 echo -en "bios=0x00\nsectors=18\nheads=2\ncylinders=80\n" 1767 1767 fi 1768 1768 if [ "$ARCH" != "ia64" ] ; then … … 1772 1772 echo -en "default=RESTORE\n" 1773 1773 elif [ "$disksize" -gt "2880" ] && [ "`DidMondoCallMe`" ] ; then 1774 if [ -e "$MONDO_TMP/start-nfs" ] ; then 1775 echo -en "default=iso\n" 1776 else 1777 echo -en "default=interactive\n" 1778 fi 1779 else 1780 echo -en "default=expert\n" 1781 fi 1782 echo -en "prompt\n" 1774 if [ -e "$MONDO_TMP/start-nfs" ] ; then 1775 echo -en "default=iso\n" 1776 else 1777 echo -en "default=interactive\n" 1778 fi 1779 else 1780 echo -en "default=expert\n" 1781 fi 1782 1783 echo -en "prompt\n" 1783 1784 if [ "$ARCH" != "ia64" ] ; then 1784 1785 echo -en "vga=normal\nbackup=/dev/null\nmessage=/message\n" … … 1802 1803 fi 1803 1804 else 1804 options="expert"1805 options="expert" 1805 1806 fi 1806 1807 for i in $options ; do 1807 1808 ooo=$i 1808 1809 [ "$ooo" = "RESTORE" ] && ooo="nuke" 1809 1810 if [ "$ARCH" = "ia64" ] ; then 1810 1811 rootpart="root=/dev/ram0\n\t" 1811 1812 else … … 2017 2018 cat $sys_cfg_file | HackSyslinuxFile $ramdisk_size $mountpoint > syslinux.cfg || Die "Cannot copy syslinux.cfg from mindi_home to tmp_root" 2018 2019 if [ -e "$MONDO_TMP/start-nfs" ] ; then 2019 mv syslinux.cfg syslinux.cfg.orig2020 sed s/interactive/iso/ syslinux.cfg.orig > syslinux.cfg2020 mv syslinux.cfg syslinux.cfg.orig 2021 sed s/interactive/iso/ syslinux.cfg.orig > syslinux.cfg 2021 2022 fi 2022 2023 cd $old_pwd … … 2024 2025 cp -f $TMP_ROOT/mindi.rdz $mountpoint/initrd.img 2>> $LOGFILE 2025 2026 if [ "$?" -ne "0" ] ; then 2026 LogIt "Failed to copy $TMP_ROOT/mindi.rdz to $mountpoint\n"2027 cat $TMP_ROOT/mtpt.$$ >> $LOGFILE2028 LogIt "Please unload some of your modules and try again.\n"2029 rm -f $TMP_ROOT/mtpt.$$2030 LogIt "Cannot incorporate mindi.rdz in bootdisk (kernel / modules too big?)\n"2027 LogIt "Failed to copy $TMP_ROOT/mindi.rdz to $mountpoint\n" 2028 cat $TMP_ROOT/mtpt.$$ >> $LOGFILE 2029 LogIt "Please unload some of your modules and try again.\n" 2030 rm -f $TMP_ROOT/mtpt.$$ 2031 LogIt "Cannot incorporate mindi.rdz in bootdisk (kernel / modules too big?)\n" 2031 2032 retval=$(($retval+1)) 2032 2033 fi … … 2041 2042 cp -f $kernelpath $mountpoint/vmlinuz &> /dev/null 2042 2043 if [ "$?" -ne "0" ] || [ "$FORCE_DUAL_FLOPPIES" = "yes" ] ; then 2043 echo "Files at mountpoint ($mountpoint) :-" >> $LOGFILE2044 du -sk $mountpoint/* >> $LOGFILE2045 echo "--- end of list of files ---" >> $LOGFILE2046 echo -en "Kernel size = `du -sk $kernelpath | cut -f1` K\nRamdisk free = $free_space K\n\2044 echo "Files at mountpoint ($mountpoint) :-" >> $LOGFILE 2045 du -sk $mountpoint/* >> $LOGFILE 2046 echo "--- end of list of files ---" >> $LOGFILE 2047 echo -en "Kernel size = `du -sk $kernelpath | cut -f1` K\nRamdisk free = $free_space K\n\ 2047 2048 Sorry, your kernel is too big for a boot/root floppy.\nI'll try the new boot/root two-disk thingy.\n" >> $LOGFILE 2048 2049 rm -f $mountpoint/vmlinuz 2049 cd $old_pwd2050 cd $old_pwd 2050 2051 umount $mountpoint || Die "Cannot unmount mountpoint ($mountpoint)" 2051 2052 rmdir $mountpoint || LogIt "Cannot rmdir (PBDI)\n" … … 2748 2749 floppy_modules="" 2749 2750 if [ "$disksize" -lt "2880" ] ; then 2750 list_of_groovy_mods="$FLOPPY_MODS `WhichOfTheseModulesAreLoaded "$SCSI_MODS"`"2751 else 2752 list_of_groovy_mods="$CDROM_MODS `WhichOfTheseModulesAreLoaded "$SCSI_MODS"`"2751 list_of_groovy_mods="$FLOPPY_MODS `WhichOfTheseModulesAreLoaded "$SCSI_MODS"`" 2752 else 2753 list_of_groovy_mods="$CDROM_MODS `WhichOfTheseModulesAreLoaded "$SCSI_MODS"`" 2753 2754 fi 2754 2755 if [ -e "$MONDO_TMP/start-nfs" ] ; then … … 3192 3193 else 3193 3194 if ! PrepareBootDiskImage_SYSLINUX $imagesdir 1722 $kernelpath $ramdisk_size ; then 3194 LogIt "Warning - failed to create 1.72MB boot image. Please reduce your kernel's size\n"3195 LogIt "if you want to make a 1.72MB floppy disk.\n"3196 fi3197 if ! PrepareBootDiskImage_SYSLINUX $imagesdir 2880 $kernelpath $ramdisk_size ; then3198 LogIt "Warning - failed to create 2.88MB floppy disk image.\n"3199 LogIt "Please reduce your kernel's size\n"3200 LogIt "if you want to make a 2.88MB floppy disk.\n"3201 fi3202 PrepareBootDiskImage_SYSLINUX $imagesdir 5760 $kernelpath $ramdisk_size || Die "Failed to create 5.76MB floppy disk image."3195 LogIt "Warning - failed to create 1.72MB boot image. Please reduce your kernel's size\n" 3196 LogIt "if you want to make a 1.72MB floppy disk.\n" 3197 if ! PrepareBootDiskImage_SYSLINUX $imagesdir 2880 $kernelpath $ramdisk_size ; then 3198 LogIt "Warning - failed to create 2.88MB floppy disk image.\n" 3199 LogIt "Please reduce your kernel's size\n" 3200 LogIt "if you want to make a 2.88MB floppy disk.\n" 3201 PrepareBootDiskImage_SYSLINUX $imagesdir 5760 $kernelpath $ramdisk_size || Die "Failed to create 5.76MB floppy disk image." 3202 fi 3203 fi 3203 3204 fi 3204 3205 -
trunk/mondo/mondo/mondoarchive/mondo-cli.c
r219 r292 221 221 long itbs; 222 222 223 struct stat buf; 224 223 225 assert(bkpinfo != NULL); 224 226 assert(flag_val != NULL); … … 297 299 if (bkpinfo->include_paths[0]) { 298 300 strcat(bkpinfo->include_paths, " "); 301 } 302 if (stat(flag_val['I'], &buf) != 0) { 303 log_msg("ERROR ! %s doesn't exist", flag_val['I']); 304 fatal_error("ERROR ! You specified a directory to include which doesn't exist"); 299 305 } 300 306 strncpy(bkpinfo->include_paths + strlen(bkpinfo->include_paths), … … 509 515 if (bkpinfo->exclude_paths[0]) { 510 516 strcat(bkpinfo->exclude_paths, " "); 517 } 518 if (stat(flag_val['E'], &buf) != 0) { 519 log_msg(1, "WARNING ! %s doesn't exist", flag_val['E']); 511 520 } 512 521 strncpy(bkpinfo->exclude_paths + strlen(bkpinfo->exclude_paths),
Note:
See TracChangeset
for help on using the changeset viewer.