Changeset 3911 in MondoRescue for branches/3.3/mondo/src/restore-scripts
- Timestamp:
- May 8, 2025, 6:38:09 PM (7 weeks ago)
- 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 41 41 command="tune2fs $opttun $label $mountpt" 42 42 fi 43 LogIt "Running e2fsck -f -p $mountpt" 44 e2fsck -f -p $mountpt 43 45 LogIt "Running $command" 44 46 $command -
branches/3.3/mondo/src/restore-scripts/mondo/mr-make-me-bootable
r3745 r3911 26 26 drive=`echo $i | sed -e 's/[0-9]*$//' -e 's/\([0-9]\)p$/\1/'` 27 27 if [ "$drivetouse" = "$drive" ]; then 28 # We can continue as this is the drive we ne d to work on28 # We can continue as this is the drive we need to work on 29 29 partno=`echo $i | sed -e 's/^.*[^0-9]\([0-9]*\)$/\1/'` 30 30 mountpt=`grep "$i " $1 | tr -s '\t' ' ' | cut -d' ' -f2` … … 49 49 driveline=`grep -E '[ ]/boot[ ]' $1` 50 50 [ ! "$driveline" ] && driveline=`grep -E '[ ]/[ ]' $1` 51 drive=`echo "$driveline" | cut -d' ' -f1 | grep -o '.*[^0-9]'` 51 52 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" 53 54 fi 54 55 55 if [ "$drive" ] ; then56 if [ "$drive" ] && [ "$drivetouse" = "$drive" ]; then 56 57 if [ "$partno" = "0" ] || [ ! "$partno" ] ; then 57 58 partno="1" … … 59 60 cmd="" 60 61 for p in $activepart; do 61 # First de sactivate active partitions (coming from previous usage)62 # First deactivate active partitions (coming from previous usage) 62 63 cmd="${cmd}a\n$p\n" 63 64 if [ "$dummy" != "" ] ; then 64 echo "Will de sactivate $p on $drive" >> $LOGFILE65 echo "Will deactivate $p on $drive" >> $LOGFILE 65 66 fi 66 67 done
Note:
See TracChangeset
for help on using the changeset viewer.