Changeset 3795 in MondoRescue for branches/3.0


Ignore:
Timestamp:
Feb 15, 2024, 3:55:18 PM (2 months ago)
Author:
Bruno Cornec
Message:

Untag v3.3.0 never really published in the past - will start from here

Location:
branches/3.0/mindi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/mindi/deplist.d/minimal.conf

    r3366 r3795  
    120120/etc/conf.modules
    121121/etc/modules.conf.local
     122/etc/depmod.d/hpvsa.conf
    122123# Debian 7
    123124/bin/kmod
  • branches/3.0/mindi/mindi

    r3360 r3795  
    3939TMPDIR=/tmp
    4040
    41 EXTRA_SPACE=120000      # increase if you run out of ramdisk space
    42 BOOT_SIZE=65600         # size of the boot disk
     41EXTRA_SPACE=140000      # increase if you run out of ramdisk space
     42BOOT_SIZE=75600         # size of the boot disk
    4343
    4444PROMPT_MAKE_CD_IMAGE="yes"
     
    221221    trap SIGHUP SIGTERM SIGTRAP SIGINT
    222222    [ "$MINDI_CACHE" != "" ] && rm -f $MINDI_CACHE/mindi*img $MINDI_CACHE/*gz $MINDI_CACHE/mindi.iso
    223     [ "$minidir_root" != "" ] && rm -Rf $minidir_root/*
    224223    Die "User abort."
    225224}
     
    655654        if [ -e "$MINDI_TMP/post-nuke.tgz" ] ; then
    656655            LogAll "\nINFO: Incorporating post-nuke tarball"
    657             old_pwd=`pwd`
    658             cd "$bigdir"
    659             tar -zxf $MINDI_TMP/post-nuke.tgz 2>> $MINDI_TMP/$$.log || LogAll "ERROR: when untarring post-nuke tarball" $MINDI_TMP/$$.log
    660             cd "$old_pwd"
     656            (cd "$bigdir" ; tar -zxf $MINDI_TMP/post-nuke.tgz 2>> $MINDI_TMP/$$.log ) || LogAll "ERROR: when untarring post-nuke tarball" $MINDI_TMP/$$.log
    661657        fi
    662658        if cp -f $MINDI_TMP/mondo*restore $bigdir/usr/bin 2>> $LOGFILE ; then
     
    14981494
    14991495OfferToMakeBootableISO() {
    1500     local i old_pwd
     1496    local i
    15011497    if [ -z "$ISO_CMD" ]; then
    15021498        LogAll "ERROR: Neither mkisofs nor genisoimage found, unable to make CD image"
     
    15531549        cp $ISOLINUX $MINDI_TMP/iso/isolinux.bin 2>> $LOGFILE || Die "Cannot copy isolinux.bin ($ISOLINUX) to $MINDI_TMP/iso - did you run out of disk space?"
    15541550    fi
    1555     old_pwd=`pwd`
    1556     cd "$MINDI_TMP/iso"
    15571551    if [ "$ARCH" != "ia64" ] ; then
    15581552        if [ _"$MONDO_SHARE" != _"" ]; then
     
    15661560            cp -f $MONDO_SHARE/autorun $MINDI_TMP/iso 2>> $LOGFILE
    15671561        fi
    1568         $ISO_CMD -U $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table . > /dev/null 2> $MINDI_TMP/mkisofs.log
    1569     else
    1570         $ISO_CMD $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b images/mindi-bootroot.$BOOT_SIZE.img -c images/boot.cat -no-emul-boot . > /dev/null 2> $MINDI_TMP/mkisofs.log
     1562        (cd $MINDI_TMP/iso ; $ISO_CMD -U $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table . > /dev/null 2> $MINDI_TMP/mkisofs.log)
     1563    else
     1564        (cd $MINDI_TMP/iso ; $ISO_CMD $ISO_OPT -V Mindi_Image -o $MINDI_CACHE/mindi.iso -b images/mindi-bootroot.$BOOT_SIZE.img -c images/boot.cat -no-emul-boot . > /dev/null 2> $MINDI_TMP/mkisofs.log)
    15711565    fi
    15721566    if [ "$?" -ne "0" ] ; then
     
    15791573    fi
    15801574    rm -f $MINDI_TMP/mkisofs.log
    1581     cd "$old_pwd"
    15821575}
    15831576
     
    26012594            Die "ERROR: Unable to copy $f to the target dir. Check your installation or McAfee presence"
    26022595        else
    2603             cp -Rdf $f . 2>&1 >> $LOGFILE
     2596            if [ -d $f ]; then
     2597                # Allow to suport target dirs being a symlink
     2598                td=`basename $f`
     2599                if [ ! -e $td ]; then
     2600                    mkdir -p $td
     2601                fi
     2602                cp -Rdf $f/* $td 2>&1 >> $LOGFILE
     2603            else
     2604                cp -df $f . 2>&1 >> $LOGFILE
     2605            fi
    26042606        fi
    26052607    done
     
    26372639    if [ $? -eq 0 ]; then
    26382640        # We want to use the real mount and all the supported variants (nfs, cifs, ...)
    2639         rm -f bin/mount
     2641        rm -f $mountpoint/bin/mount
    26402642    fi
    26412643
     
    26862688        tar cf - -C / /etc/udev 2>> $MINDI_TMP/$$.log | tar xf -  || LogIt "ERROR: Problem in /etc/udev analysis" $MINDI_TMP/$$.log
    26872689        # This avoids NIC remapping if on another machine at restore time on Debian/Ubuntu at least
    2688         rm -f ./etc/udev/rules.d/[z]*[0-9][0-9][-_]persistent-net.rules
     2690        rm -f $mountpoint/etc/udev/rules.d/[z]*[0-9][0-9][-_]persistent-net.rules
    26892691        # Do not do it if it's a link (Ubuntu 64 bits #503)
    26902692        if [ -e "/lib64/udev" ] && [ ! -h "/lib64" ] && [ ! -h "/lib64/udev" ]; then
Note: See TracChangeset for help on using the changeset viewer.