Changeset 1043 in MondoRescue for trunk/mondo/src/restore-scripts
- Timestamp:
- Jan 8, 2007, 11:31:22 PM (18 years ago)
- Location:
- trunk/mondo/src/restore-scripts/mondo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/src/restore-scripts/mondo/hack-fstab
r588 r1043 1 1 #!/bin/sh 2 2 # 3 # $Id$ 3 4 # 4 #5 #6 #7 # 2003/08/048 # - added some logging9 #10 # mid-2002 --- created11 ################################################12 13 5 14 6 LogIt() { 15 7 echo "$1" >> /dev/stderr 16 8 } 17 18 19 9 20 10 … … 33 23 # echo "original_fstab_line = $original_fstab_line" >> /dev/stderr 34 24 if [ "`grep "LABEL=" $old_fstab`" != "" ] ; then 35 if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then36 device="LABEL=$mountpoint"37 fi25 if [ "$format" = "ext2" ] || [ "$format" = "ext3" ] ; then 26 device="LABEL=$mountpoint" 27 fi 38 28 fi 39 29 … … 44 34 if [ "$original_fstab_line" != "" ] ; then 45 35 # echo $original_fstab_line | gawk '{i=index($0,$4); print substr($0,i);}' 46 echo "$original_fstab_line" | cut -d' ' -f4-19 | tr -s ' ' ' '36 echo "$original_fstab_line" | cut -d' ' -f4-19 | tr -s ' ' ' ' 47 37 else 48 echo -e "defaults 0 0"38 echo -e "defaults 0 0" 49 39 fi 50 40 } 51 52 41 53 42 -
trunk/mondo/src/restore-scripts/mondo/restore-bigfiles-from-iso
r588 r1043 63 63 if echo "$slicename" | grep "bz2" > /dev/null ; then 64 64 bzip2 -dc $slicename >> "$OUTFNAME" || Die "Failed to decompress slice $slicename" 65 elif echo "$slicename" | grep "gz" > /dev/null ; then 66 gzip -dc $slicename >> "$OUTFNAME" || Die "Failed to decompress slice $slicename" 65 67 elif echo "$slicename" | grep "lzo" > /dev/null ; then 66 68 lzop -dc $slicename >> "$OUTFNAME" || Die "Failed to decompress slice $slicename" -
trunk/mondo/src/restore-scripts/mondo/stabgrub-me
r839 r1043 32 32 LogIt "No need for fstab search." 2 33 33 # fstab_list=/mnt/RESTORING/etc/fstab 34 old_fstab=/mnt/RESTORING/etc/fstab35 old_grubconf=/mnt/RESTORING/etc/grub.conf34 old_fstab=/mnt/RESTORING/etc/fstab 35 old_grubconf=/mnt/RESTORING/etc/grub.conf 36 36 # For some distros, e.g. Debian, /etc/grub.conf is a symbolic link 37 # which we need to resolve and prepend with /mnt/RESTORING because38 # we run this outside the chroot.39 if [ -L "$old_grubconf" ] ; then40 old_grubconf=/mnt/RESTORING`readlink "$old_grubconf"`41 fi42 return 037 # which we need to resolve and prepend with /mnt/RESTORING because 38 # we run this outside the chroot. 39 if [ -L "$old_grubconf" ] ; then 40 old_grubconf=/mnt/RESTORING/etc/`readlink "$old_grubconf"` 41 fi 42 return 0 43 43 elif [ -f "/mnt/cdrom/archives/CUCKOO" ] ; then 44 44 LogIt "Because I'm cuckoo, I'll stop searching." 2
Note:
See TracChangeset
for help on using the changeset viewer.