Changeset 289 in MondoRescue
- Timestamp:
- Jan 10, 2006, 9:35:09 AM (19 years ago)
- Location:
- branches/2.06
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.06/mindi/mindi
r285 r289 2017 2017 cat $sys_cfg_file | HackSyslinuxFile $ramdisk_size $mountpoint > syslinux.cfg || Die "Cannot copy syslinux.cfg from mindi_home to tmp_root" 2018 2018 if [ -e "$MONDO_TMP/start-nfs" ] ; then 2019 mv syslinux.cfg syslinux.cfg.orig2020 sed s/interactive/iso/ syslinux.cfg.orig > syslinux.cfg2019 mv syslinux.cfg syslinux.cfg.orig 2020 sed s/interactive/iso/ syslinux.cfg.orig > syslinux.cfg 2021 2021 fi 2022 2022 cd $old_pwd … … 2024 2024 cp -f $TMP_ROOT/mindi.rdz $mountpoint/initrd.img 2>> $LOGFILE 2025 2025 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"2026 LogIt "Failed to copy $TMP_ROOT/mindi.rdz to $mountpoint\n" 2027 cat $TMP_ROOT/mtpt.$$ >> $LOGFILE 2028 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" 2031 2031 retval=$(($retval+1)) 2032 2032 fi … … 2041 2041 cp -f $kernelpath $mountpoint/vmlinuz &> /dev/null 2042 2042 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\2043 echo "Files at mountpoint ($mountpoint) :-" >> $LOGFILE 2044 du -sk $mountpoint/* >> $LOGFILE 2045 echo "--- end of list of files ---" >> $LOGFILE 2046 echo -en "Kernel size = `du -sk $kernelpath | cut -f1` K\nRamdisk free = $free_space K\n\ 2047 2047 Sorry, your kernel is too big for a boot/root floppy.\nI'll try the new boot/root two-disk thingy.\n" >> $LOGFILE 2048 2048 rm -f $mountpoint/vmlinuz 2049 cd $old_pwd2049 cd $old_pwd 2050 2050 umount $mountpoint || Die "Cannot unmount mountpoint ($mountpoint)" 2051 2051 rmdir $mountpoint || LogIt "Cannot rmdir (PBDI)\n" … … 3192 3192 else 3193 3193 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"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 3196 fi 3197 3197 if ! PrepareBootDiskImage_SYSLINUX $imagesdir 2880 $kernelpath $ramdisk_size ; then -
branches/2.06/mondo/mondo/mondoarchive/mondo-cli.c
r273 r289 360 360 long itbs; 361 361 362 struct stat buf; 363 362 364 malloc_string(tmp); 363 365 malloc_string(psz); … … 439 441 if (bkpinfo->include_paths[0]) { 440 442 strcat(bkpinfo->include_paths, " "); 443 } 444 if (stat(flag_val['I'], &buf) != 0) { 445 log_msg("ERROR ! %s doesn't exist", flag_val['I']); 446 fatal_error("ERROR ! You specified a directory to include which doesn't exist"); 441 447 } 442 448 strncpy(bkpinfo->include_paths + strlen(bkpinfo->include_paths), … … 652 658 if (bkpinfo->exclude_paths[0]) { 653 659 strcat(bkpinfo->exclude_paths, " "); 660 } 661 if (stat(flag_val['E'], &buf) != 0) { 662 log_msg(1, "WARNING ! %s doesn't exist", flag_val['E']); 654 663 } 655 664 strncpy(bkpinfo->exclude_paths + strlen(bkpinfo->exclude_paths),
Note:
See TracChangeset
for help on using the changeset viewer.