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