Changeset 3911 in MondoRescue for branches/3.3/mondo/src/restore-scripts


Ignore:
Timestamp:
May 8, 2025, 6:38:09 PM (7 weeks ago)
Author:
Bruno Cornec
Message:

Debian 11 fixes patch from Christoph.Griesbeck_at_de.fkdelvotec.com adapted where necessary

Location:
branches/3.3/mondo/src/restore-scripts/mondo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3/mondo/src/restore-scripts/mondo/mr-label-partitions-as-necessary

    r3732 r3911  
    4141                command="tune2fs $opttun $label $mountpt"
    4242            fi
     43            LogIt "Running e2fsck -f -p $mountpt"
     44            e2fsck -f -p $mountpt
    4345            LogIt "Running $command"
    4446            $command
  • branches/3.3/mondo/src/restore-scripts/mondo/mr-make-me-bootable

    r3745 r3911  
    2626    drive=`echo $i | sed -e 's/[0-9]*$//' -e 's/\([0-9]\)p$/\1/'`
    2727    if [ "$drivetouse" = "$drive" ]; then
    28         # We can continue as this is the drive we ned to work on
     28        # We can continue as this is the drive we need to work on
    2929        partno=`echo $i | sed -e 's/^.*[^0-9]\([0-9]*\)$/\1/'`
    3030        mountpt=`grep "$i " $1 | tr -s '\t' ' ' | cut -d' ' -f2`
     
    4949    driveline=`grep -E '[   ]/boot[     ]' $1`
    5050    [ ! "$driveline" ] && driveline=`grep -E '[     ]/[     ]' $1`
     51    drive=`echo "$driveline" | cut -d' ' -f1 | grep -o '.*[^0-9]'`
    5152    partno=`echo "$driveline" | cut -d' ' -f1 | awk -F "[a-z]" '{print $NF;}'`
    52 #    echo "driveline=$driveline --> partno=$partno"
     53#    echo "driveline=$driveline --> partno=$partno and drive=$drive"
    5354fi
    5455
    55 if [ "$drive" ] ; then
     56if [ "$drive" ] && [ "$drivetouse" = "$drive" ]; then
    5657    if [ "$partno" = "0" ] || [ ! "$partno" ] ; then
    5758        partno="1"
     
    5960    cmd=""
    6061    for p in $activepart; do
    61         # First desactivate active partitions (coming from previous usage)
     62        # First deactivate active partitions (coming from previous usage)
    6263        cmd="${cmd}a\n$p\n"
    6364        if [ "$dummy" != "" ] ; then
    64             echo "Will desactivate $p on $drive" >> $LOGFILE
     65            echo "Will deactivate $p on $drive" >> $LOGFILE
    6566        fi
    6667    done
Note: See TracChangeset for help on using the changeset viewer.