Changeset 2067


Ignore:
Timestamp:
Nov 26, 2008, 12:55:25 PM (12 years ago)
Author:
Bruno Cornec
Message:

Fix #297 by using syslinux on a local file and moving it later on to a potential NFS share

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mindi/mindi

    r2060 r2067  
    16851685    TurnTgzIntoRdz $MINDI_LIB/rootfs $MINDI_TMP/initrd.img `du -sk $kernelpath | cut -f1` || Die "Could not turn rootfs into initrd.img; are you SURE your kernel supports loopfs?"
    16861686    echo -en "..."
    1687     imagefile=$imagesdir/mindi-bootroot.$BOOT_SIZE.img
     1687    imagefile=$MINDI_TMP/mindi-bootroot.$BOOT_SIZE.img
    16881688    mountpoint=$MINDI_TMP/mountpoint.$$
    16891689    mkdir -p $mountpoint
     
    16911691    echo "Creating vfat filesystem on $imagefile" >> $LOGFILE
    16921692    mkfs.vfat $imagefile >> $LOGFILE 2>> $LOGFILE
     1693    # syslinux should be run on a  local file (doen't work through NFS Cf: #297)
    16931694    syslinux $imagefile >> $LOGFILE 2>> $LOGFILE
     1695
     1696    # Only move it now to its final destination abd use it now
     1697    mv $imagefile $imagesdir
     1698    imagefile=$imagesdir/mindi-bootroot.$BOOT_SIZE.img
    16941699
    16951700    mount -t vfat -o loop $imagefile $mountpoint || LogIt "Cannot mount (PBDI)"
Note: See TracChangeset for help on using the changeset viewer.