Changeset 1121 in MondoRescue for branches/stable/mindi/mindi
- Timestamp:
- Feb 9, 2007, 6:49:33 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/stable/mindi/mindi
r1099 r1121 1834 1834 if [ "$disksize" -eq "2880" ] ; then 1835 1835 echo -en "bios=0x00\nsectors=36\nheads=2\ncylinders=80\n" 1836 elif [ "$disksize" -eq "1722" ] ; then1837 echo -en "bios=0x00\nsectors=21\nheads=2\ncylinders=82\n"1838 1836 elif [ "$disksize" -gt "2880" ] ; then 1839 1837 /bin/true … … 1913 1911 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?" 1914 1912 if [ "$ARCH" != "ia64" ] ; then 1915 [ "$disksize" != " 1722" ] && [ "$disksize" != "2880" ] && [ "$disksize" != "5760" ] && Die "PDBI - disksize is $disksize - bad size"1913 [ "$disksize" != "2880" ] && [ "$disksize" != "5760" ] && Die "PDBI - disksize is $disksize - bad size" 1916 1914 fi 1917 1915 echo -en "..." … … 2082 2080 echo -en "Making "$disksize"KB boot disk..." 2083 2081 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?" 2084 [ "$disksize" != " 1722" ] && [ "$disksize" != "2880" ] && [ "$disksize" != "5760" ] && Die "PDBI - disksize is $disksize - bad size"2082 [ "$disksize" != "2880" ] && [ "$disksize" != "5760" ] && Die "PDBI - disksize is $disksize - bad size" 2085 2083 echo -en "..." 2086 2084 imagefile=$imagesdir/mindi-bootroot.$disksize.img 2087 2085 mountpoint=$MINDI_TMP/mountpoint.$$ 2088 2086 mkdir -p $mountpoint 2089 # If I format a 1722KB data file & run syslinux on it, the resultant image 2090 # won't boot. So, I have formatted a floppy, called syslinux on/to it, and 2091 # used 'dd' to copy it to sys-disk.raw (zipped to sys-disk.raw.gz). 2092 # If I extract it, mount it, copy my files to it, etc. then the resultant 2093 # image _is_ bootable. I don't know why syslinux and/or mkfs.vfat won't 2094 # play nicely and I don't care. :) I have worked around the problem. -Hugo, 06/27/2002 2095 if [ "$disksize" = "1722" ] ; then 2096 gzip -dc $MINDI_LIB/sys-disk.raw.gz > $imagefile || Die "Cannot dd blank file" 2097 else 2098 dd if=/dev/zero of=$imagefile bs=1k count=$disksize &> /dev/null || Die "Cannot dd blank file" 2099 echo "Creating vfat filesystem on $imagefile" >> $LOGFILE 2100 mkfs.vfat $imagefile >> $LOGFILE 2>> $LOGFILE 2101 syslinux $imagefile >> $LOGFILE 2>> $LOGFILE 2102 fi 2087 dd if=/dev/zero of=$imagefile bs=1k count=$disksize &> /dev/null || Die "Cannot dd blank file" 2088 echo "Creating vfat filesystem on $imagefile" >> $LOGFILE 2089 mkfs.vfat $imagefile >> $LOGFILE 2>> $LOGFILE 2090 syslinux $imagefile >> $LOGFILE 2>> $LOGFILE 2091 2103 2092 mount -t vfat -o loop $imagefile $mountpoint || LogIt "Cannot mount (PBDI)" 2104 2093 … … 3279 3268 PrepareBootDiskImage_LILO $MINDI_CACHE $IA64_BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create ia64 floppy disk image." 3280 3269 else 3281 if ! PrepareBootDiskImage_LILO $MINDI_CACHE 1722 $kernelpath $ramdisk_size ; then3282 LogIt "WARNING - failed to create 1.72MB boot image."3283 LogIt "Please reduce your kernel's size if you want to make a 1.72MB floppy disk."3284 fi3285 3270 if ! PrepareBootDiskImage_LILO $MINDI_CACHE 2880 $kernelpath $ramdisk_size ; then 3286 3271 LogIt "WARNING - failed to create 2.88MB floppy disk image." … … 3290 3275 fi 3291 3276 else 3292 if ! PrepareBootDiskImage_SYSLINUX $MINDI_CACHE 1722 $kernelpath $ramdisk_size ; then 3293 LogIt "WARNING - failed to create 1.72MB boot image." 3294 LogIt "Please reduce your kernel's size if you want to make a 1.72MB floppy disk." 3295 if ! PrepareBootDiskImage_SYSLINUX $MINDI_CACHE 2880 $kernelpath $ramdisk_size ; then 3296 LogIt "WARNING - failed to create 2.88MB floppy disk image." 3297 LogIt "Please reduce your kernel's size if you want to make a 2.88MB floppy disk." 3298 PrepareBootDiskImage_SYSLINUX $MINDI_CACHE 5760 $kernelpath $ramdisk_size || Die "Failed to create 5.76MB floppy disk image." 3299 fi 3277 if ! PrepareBootDiskImage_SYSLINUX $MINDI_CACHE 2880 $kernelpath $ramdisk_size ; then 3278 LogIt "WARNING - failed to create 2.88MB floppy disk image." 3279 LogIt "Please reduce your kernel's size if you want to make a 2.88MB floppy disk." 3280 PrepareBootDiskImage_SYSLINUX $MINDI_CACHE 5760 $kernelpath $ramdisk_size || Die "Failed to create 5.76MB floppy disk image." 3300 3281 fi 3301 3282 fi … … 3306 3287 if [ _"$MONDO_SHARE" = _"" ]; then 3307 3288 ListImagesForUser $MINDI_CACHE 3308 boot_dev=/dev/fd0u17223309 [ ! -e "$boot_dev" ] && mknod $boot_dev b 2 603310 [ ! -e "$boot_dev" ] && boot_dev=/dev/fd0H17223311 [ ! -e "$boot_dev" ] && Die "Will you PLEASE tell your distribution maker to create the 1.72MB devices in /dev?"3312 3289 if [ "$PROMPT_WRITE_BOOT_FLOPPIES" = "yes" ]; then 3313 3290 OfferToCopyImagesToDisks $MINDI_CACHE $boot_dev $FDDEVICE
Note:
See TracChangeset
for help on using the changeset viewer.