Ignore:
Timestamp:
Jul 26, 2007, 1:35:59 AM (13 years ago)
Author:
Bruno Cornec
Message:
  • Add support of Debian ia64 in mondo
  • Fix mindi iso build for ia64 (test was reversed)
  • Add support for gzip compressed kernel in mindi (ia64 SLES 10 is in that category)
  • arch => uname -m everywhere
  • parted2fdisk adapted for parted differences on SLES 10 ia64
  • reiserfs support added for parted2fdisk
  • decode_Bsuf function added for parted2fdisk
  • README.ia64 improved for SLES 10

(merge -r 1563:1567 $SVN_M/branches/2.2.5)

Also begin to remove floppy support from mindi

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/mindi

    r1544 r1570  
    1414
    1515### Which arch are we on (useful for ia64 port)
    16 ARCH=`/bin/arch`
     16ARCH=`/bin/uname -m`
    1717
    1818#RUN_AFTER_INITIAL_BOOT_PHASE="echo \"Who lives in a pineapple under the sea?\" > /tmp/spongebob.squarepants.txt"
     
    880880    [ ! -f $lvKernelImage ] && Die "File $lvKernelImage not found. Terminating."
    881881
    882     # get offet of gzip magic "1f8b0800" in file
    883     lvOffset=`od -vA n -t x1 $lvKernelImage | tr -d '[:space:]' | awk '{ print match($0, "1f8b0800")}'`
    884     [ $lvOffset -eq 0 ] && Die "gzip magic not found in file $lvKernelImage. Terminating."
    885     lvOffset=`expr $lvOffset / 2`
    886     echo "  GetInitrdFilesystemToUse(): gzip magic found at lvOffset $lvOffset.\n" >> $LOGFILE
    887 
    888     # scan kernel image for initrd filessystem support
    889     lvScanRes=`dd ibs=1 skip=$lvOffset if=$lvKernelImage obs=1M 2>/dev/null | gunzip -c 2> /dev/null | strings | grep -e "$lcMagicCramfs" -e "$lcMagicExt2fs" -e "$lcMagicInitfs"`
     882    # Kernel may be gzip compressed
     883    file $lvKernelImage 2>&1 | grep -q  gzip
     884    if [ $? -eq 0 ]; then
     885        lvScanRes=`gzip -cd $lvKernelImage | strings | grep -e "$lcMagicCramfs" -e "$lcMagicExt2fs" -e "$lcMagicInitfs"`
     886    else
     887        # get offet of gzip magic "1f8b0800" in file
     888        lvOffset=`od -vA n -t x1 $lvKernelImage | tr -d '[:space:]' | awk '{ print match($0, "1f8b0800")}'`
     889        [ $lvOffset -eq 0 ] && Die "gzip magic not found in file $lvKernelImage. Terminating."
     890        lvOffset=`expr $lvOffset / 2`
     891        echo "  GetInitrdFilesystemToUse(): gzip magic found at lvOffset $lvOffset.\n" >> $LOGFILE
     892
     893        # scan kernel image for initrd filessystem support
     894        lvScanRes=`dd ibs=1 skip=$lvOffset if=$lvKernelImage obs=1M 2>/dev/null | gunzip -c 2> /dev/null | strings | grep -e "$lcMagicCramfs" -e "$lcMagicExt2fs" -e "$lcMagicInitfs"`
     895    fi
    890896
    891897    # determine which filesystem to use for initrd image: ext2fs, gzip'ed cpio (initramfs ) or cramfs
     
    33413347
    33423348echo "Ramdisk will be $ramdisk_size KB" >> $LOGFILE
    3343 if [ "$USE_LILO" = "yes" ] ; then
    3344     if [ "$ARCH" = "ia64" ] ; then
    3345         PrepareBootDiskImage_LILO $MINDI_CACHE $BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create ia64 floppy disk image."
    3346     else
    3347         if ! PrepareBootDiskImage_LILO $MINDI_CACHE 2880 $kernelpath $ramdisk_size ;  then
    3348             LogIt "WARNING - failed to create 2.88MB floppy disk image."
    3349             LogIt "Please reduce your kernel's size if you want to make a 2.88MB floppy disk."
    3350             PrepareBootDiskImage_LILO $MINDI_CACHE $BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create 2.88MB floppy disk image."
    3351         fi
    3352     fi
     3349if [ "$ARCH" = "ia64" ] ; then
     3350    PrepareBootDiskImage_LILO $MINDI_CACHE $BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create ia64 floppy disk image."
    33533351else
    3354     if ! PrepareBootDiskImage_SYSLINUX $MINDI_CACHE 2880 $kernelpath $ramdisk_size ; then
    3355         LogIt "WARNING - failed to create 2.88MB floppy disk image."
    3356         LogIt "Please reduce your kernel's size if you want to make a 2.88MB floppy disk."
    3357         PrepareBootDiskImage_SYSLINUX $MINDI_CACHE $BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create 5.76MB floppy disk image."
     3352    if [ "$USE_LILO" = "yes" ] ; then
     3353        PrepareBootDiskImage_LILO $MINDI_CACHE $BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create $BOOT_SIZE MB disk image."
     3354        fi
     3355    else
     3356        PrepareBootDiskImage_SYSLINUX $MINDI_CACHE $BOOT_SIZE $kernelpath $ramdisk_size || Die "Failed to create $BOOT_SIZE MB disk image."
    33583357    fi
    33593358fi
Note: See TracChangeset for help on using the changeset viewer.