Changeset 289 in MondoRescue for branches/2.06/mindi/mindi
- Timestamp:
- Jan 10, 2006, 9:35:09 AM (18 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.