Changeset 2704 in MondoRescue for branches/2.2.10/mindi/mindi


Ignore:
Timestamp:
Jan 27, 2011, 7:31:24 PM (13 years ago)
Author:
Bruno Cornec
Message:

r4180@localhost: bruno | 2011-01-27 10:26:41 +0100

  • Fix multiple port issues from 2.2.9 that prevented mindi to work
  • Change interface of call_program_and_get_last_line_of_output to allow not logging (call to mindi)
  • Status is working boot, but NFS interface broken due to conf file issues
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mindi/mindi

    r2696 r2704  
    14131413    if [ "$ARCH" != "ia64" ] ; then
    14141414        if [ _"$MONDO_SHARE" != _"" ]; then
    1415             cp -f $MINDI_TMP/iso/{isolinux.cfg,initrd.img,vmlinuz,isolinux.bin,message.txt} $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?"
     1415            cp -f $MINDI_TMP/iso/{isolinux.cfg,initrd.img,vmlinuz,isolinux.bin,message.txt} $MONDO_CACHE 2>> $LOGFILE || Die "Cannot copy core files to ramdisk for boot disk (under $MONDO_CACHE). Did you run out of disk space?"
    14161416            if [ $KERNEL_IS_XEN = "yes" ]; then
    1417                 cp -f $MINDI_TMP/iso/{mboot.c32,xen.gz} $MONDO_ROOT 2>> $LOGFILE || Die "Cannot copy Xen core files to ramdisk for boot disk (under $MONDO_ROOT). Did you run out of disk space?"
     1417                cp -f $MINDI_TMP/iso/{mboot.c32,xen.gz} $MONDO_CACHE 2>> $LOGFILE || Die "Cannot copy Xen core files to ramdisk for boot disk (under $MONDO_CACHE). Did you run out of disk space?"
    14181418            fi
    14191419            cp -f $MONDO_SHARE/autorun $MINDI_TMP/iso 2>> $LOGFILE
     
    23112311    done
    23122312
    2313     rm -f $MINDI_TMP/ungzip.lis
    23142313    for i in `echo $needed_modules  | tr ' ' '\n' | sort -u`; do
    23152314        grep -qE '^$i$' $MINDI_TMP/cp.lis
     
    23182317            LogFile "Adding $i ($s KB) to the rootfs"
    23192318            echo $i >> $MINDI_TMP/cp.lis
    2320 
    2321             # Uncompress modules if not using udev and native modprobe
    2322             if [ ! -f $mountpoint/tmp/USE-UDEV ]; then
    2323                 if [ "`echo "$i" | grep -F ".gz"`" ]; then
    2324                     echo "$i" >> $MINDI_TMP/ungzip.lis
    2325                 fi
    2326             fi
    23272319        fi
    23282320    done
     
    23402332    # Copy FW in case some drivers needs it
    23412333    if [ -d "/lib/firmware" ]; then
    2342         cp -rp /lib/firmware $mountpoint/lib
     2334        echo "lib/firmware" >> $MINDI_TMP/mkdir.lis
     2335        echo "/lib/firmware" >> $MINDI_TMP/cp.lis
    23432336    fi
    23442337
     
    23802373    # Then copy files needed
    23812374    LANGUAGE=C tar cf - `cat $MINDI_TMP/cp.lis` 2> /dev/null | (cd $mountpoint ; tar xf - ) 2>&1 | grep -Ev "tar: Removing.*/\'" >> $LOGFILE
    2382 
    2383     # Uncompress modules if not using udev and native modprobe
    2384     for f in `cat $MINDI_TMP/ungzip.lis`; do
    2385         echo "Uncompressing $f" >> $LOGFILE
    2386         gunzip -f $mountpoint/$f
    2387     done
    2388     rm -f $MINDI_TMP/ungzip.lis
    23892375
    23902376    # Then handle links
     
    24902476LogFile "Start date : `date`"
    24912477LogFile "-----------------------------"
    2492 
    2493 # TODO: Remove that
    2494 [ -e "/sbin/mkdosfs" ] && [ ! -e "/sbin/mkfs.vfat" ] && ln -sf /sbin/mkdosfs /sbin/mkfs.vfat
    24952478
    24962479# Log some capital variables
     
    26302613LogFile "-------------"
    26312614LogFile "Liste of extra modules is:"
     2615LogFile "-------------"
    26322616LogFile "$EXTRA_MODS"
    26332617LogFile "-------------"
     
    27182702            Die "MONDO_TMP is /, aborting"
    27192703        fi
    2720         mv $MINDI_TMP/* $MINDI_TMP/.??* $MONDO_TMP 2>> $LOGFILE
    27212704        rmdir $MINDI_TMP
    27222705        export MINDI_TMP=$MONDO_TMP
Note: See TracChangeset for help on using the changeset viewer.