Changeset 1282 in MondoRescue
- Timestamp:
- Mar 30, 2007, 4:58:46 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.2/mindi/mindi
r1258 r1282 41 41 42 42 EXTRA_SPACE=24576 ; # increase if you run out of ramdisk space 43 IA64_BOOT_SIZE=8192 ; # size of the ia64boot disk43 BOOT_SIZE=8192 ; # size of the boot disk 44 44 WRITE_BOOT_FLOPPIES="yes" ; # do you want to be propted to write floppy images 45 45 PROMPT_WRITE_BOOT_FLOPPIES="yes" … … 1570 1570 [ ! -e "$data_dev" ] && Die "Cannot find $data_dev - is your Linux distro broken?" 1571 1571 i=`find $imagesdir -type f | grep -F "/mindi-root.1" 2> /dev/null` 1572 j=`find $imagesdir -type f | grep -F "/mindi-boot" | grep -Ev '2880|5760'`1572 j=`find $imagesdir -type f | grep -F "/mindi-boot" | grep -Ev "2880|$BOOT_SIZE"` 1573 1573 if [ "$i" ] ; then 1574 1574 CopyImageToDisk $j $data_dev "boot disk" … … 1636 1636 mkisofs -U -J -r -o $CACHE_LOC/mindi.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table . > /dev/null 2> $MINDI_TMP/mkisofs.log 1637 1637 else 1638 mkisofs -J -r -o $CACHE_LOC/mindi.iso -b images/mindi-bootroot.$ IA64_BOOT_SIZE.img -c isolinux/boot.cat -no-emul-boot . > /dev/null 2> $MINDI_TMP/mkisofs.log1638 mkisofs -J -r -o $CACHE_LOC/mindi.iso -b images/mindi-bootroot.$BOOT_SIZE.img -c isolinux/boot.cat -no-emul-boot . > /dev/null 2> $MINDI_TMP/mkisofs.log 1639 1639 fi 1640 1640 if [ "$?" -ne "0" ] ; then … … 1828 1828 TurnTgzIntoRdz $MINDI_LIB/rootfs $MINDI_TMP/mindi.rdz $ramdisksize $disksize `du -sk $kernelpath | cut -f1` || Die "Could not turn rootfs into mindi.rdz; are you SURE your kernel supports loopfs?" 1829 1829 if [ "$ARCH" != "ia64" ] ; then 1830 [ "$disksize" != "1722" ] && [ "$disksize" != "2880" ] && [ "$disksize" != " 5760" ] && Die "PDBI - disksize is $disksize - bad size"1830 [ "$disksize" != "1722" ] && [ "$disksize" != "2880" ] && [ "$disksize" != "$BOOT_SIZE" ] && Die "PDBI - disksize is $disksize - bad size" 1831 1831 fi 1832 1832 echo -en "..." … … 1996 1996 echo -en "Making "$disksize"KB boot disk..." 1997 1997 TurnTgzIntoRdz $MINDI_LIB/rootfs $MINDI_TMP/mindi.rdz $ramdisksize $disksize `du -sk $kernelpath | cut -f1` || Die "Could not turn rootfs into mindi.rdz; are you SURE your kernel supports loopfs?" 1998 [ "$disksize" != "1722" ] && [ "$disksize" != "2880" ] && [ "$disksize" != " 5760" ] && Die "PDBI - disksize is $disksize - bad size"1998 [ "$disksize" != "1722" ] && [ "$disksize" != "2880" ] && [ "$disksize" != "$BOOT_SIZE" ] && Die "PDBI - disksize is $disksize - bad size" 1999 1999 echo -en "..." 2000 2000 imagefile=$imagesdir/mindi-bootroot.$disksize.img … … 3116 3116 if [ "$USE_LILO" = "yes" ] ; then 3117 3117 if [ "$ARCH" = "ia64" ] ; then 3118 PrepareBootDiskImage_LILO $CACHE_LOC $ IA64_BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create ia64 floppy disk image."3118 PrepareBootDiskImage_LILO $CACHE_LOC $BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create ia64 floppy disk image." 3119 3119 else 3120 3120 if ! PrepareBootDiskImage_LILO $CACHE_LOC 1722 $kernelpath $ramdisk_size ; then … … 3125 3125 LogIt "WARNING - failed to create 2.88MB floppy disk image." 3126 3126 LogIt "Please reduce your kernel's size if you want to make a 2.88MB floppy disk." 3127 PrepareBootDiskImage_LILO $CACHE_LOC 5760$kernelpath $ramdisk_size || Die "Failed to create 2.88MB floppy disk image."3127 PrepareBootDiskImage_LILO $CACHE_LOC $BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create 2.88MB floppy disk image." 3128 3128 fi 3129 3129 fi … … 3135 3135 LogIt "WARNING - failed to create 2.88MB floppy disk image." 3136 3136 LogIt "Please reduce your kernel's size if you want to make a 2.88MB floppy disk." 3137 PrepareBootDiskImage_SYSLINUX $CACHE_LOC 5760$kernelpath $ramdisk_size || Die "Failed to create 5.76MB floppy disk image."3137 PrepareBootDiskImage_SYSLINUX $CACHE_LOC $BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create 5.76MB floppy disk image." 3138 3138 fi 3139 3139 fi
Note:
See TracChangeset
for help on using the changeset viewer.