source: MondoRescue/branches/3.3/mondo/src/restore-scripts/mondo/mr-mount-me

Last change on this file was 3706, checked in by Bruno Cornec, 6 years ago

Adds bind mounting of virtual FS to ease debug when used manually

  • Property svn:keywords set to Id
  • Property svn:unix-mode set to 755
File size: 596 bytes
Line 
1#!/bin/sh
2#
3# $Id: mr-mount-me 3706 2018-04-12 23:27:58Z bruno $
4#
5
6mountlist=/tmp/mountlist.txt
7
8if [ "$#" -ne "0" ] ;then
9 echo "mr-mount-me <no params>"
10 echo "...mountlist is assumed to be at $mountlist"
11 exit 1
12fi
13
14if [ ! -f "$mountlist" ] ; then
15 echo "I cannot find the mountlist '$mountlist'. Aborting."
16 exit 1
17fi
18
19paths=`grep -vE " raid |lvm lvm" $mountlist | awk '{print $2}' | sort`
20> $mountlist.sorted
21for i in $paths ; do
22 grep " $i " $mountlist >> $mountlist.sorted
23done
24mr-mount-subroutine-me < $mountlist.sorted
25res=$?
26mount -o bind /proc /mnt/RESTORING/proc
27mount -o bind /sys /mnt/RESTORING/sys
28exit $res
Note: See TracBrowser for help on using the repository browser.