Ignore:
Timestamp:
Feb 9, 2007, 6:49:33 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • 1722 Floppies are NOT supported anymore (allows for mindi to become noarch)
  • mindi is now a noarch type of package
  • RPM Packaging improvements for Fedora
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r1099 r1121  
    18341834    if [ "$disksize" -eq "2880" ] ; then
    18351835        echo -en "bios=0x00\nsectors=36\nheads=2\ncylinders=80\n"
    1836     elif [ "$disksize" -eq "1722" ] ; then
    1837         echo -en "bios=0x00\nsectors=21\nheads=2\ncylinders=82\n"
    18381836    elif [ "$disksize" -gt "2880" ] ; then
    18391837        /bin/true
     
    19131911    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?"
    19141912    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"
    19161914    fi
    19171915    echo -en "..."
     
    20822080    echo -en "Making "$disksize"KB boot disk..."
    20832081    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"
    20852083    echo -en "..."
    20862084    imagefile=$imagesdir/mindi-bootroot.$disksize.img
    20872085    mountpoint=$MINDI_TMP/mountpoint.$$
    20882086    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
    21032092    mount -t vfat -o loop $imagefile $mountpoint || LogIt "Cannot mount (PBDI)"
    21042093
     
    32793268        PrepareBootDiskImage_LILO $MINDI_CACHE $IA64_BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create ia64 floppy disk image."
    32803269    else
    3281         if ! PrepareBootDiskImage_LILO $MINDI_CACHE 1722 $kernelpath $ramdisk_size ; then
    3282             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         fi
    32853270        if ! PrepareBootDiskImage_LILO $MINDI_CACHE 2880 $kernelpath $ramdisk_size ;  then
    32863271            LogIt "WARNING - failed to create 2.88MB floppy disk image."
     
    32903275    fi
    32913276else
    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."
    33003281    fi
    33013282fi
     
    33063287if [ _"$MONDO_SHARE" = _"" ]; then
    33073288    ListImagesForUser $MINDI_CACHE
    3308     boot_dev=/dev/fd0u1722
    3309     [ ! -e "$boot_dev" ] && mknod $boot_dev b 2 60
    3310     [ ! -e "$boot_dev" ] && boot_dev=/dev/fd0H1722
    3311     [ ! -e "$boot_dev" ] && Die "Will you PLEASE tell your distribution maker to create the 1.72MB devices in /dev?"
    33123289    if [ "$PROMPT_WRITE_BOOT_FLOPPIES" = "yes" ]; then
    33133290        OfferToCopyImagesToDisks $MINDI_CACHE $boot_dev $FDDEVICE
Note: See TracChangeset for help on using the changeset viewer.