diff options
author | hunt <hunt> | 2007-04-10 13:28:51 +0000 |
---|---|---|
committer | hunt <hunt> | 2007-04-10 13:28:51 +0000 |
commit | 3596cbca20e5ef0f110ffd342db6d0e4278e81ba (patch) | |
tree | e62e360e03886e1d0784074c96e7eb5a149b6795 /stp_check.in | |
parent | 23703a682e42f23f2197dc0a366950f3a298a9b6 (diff) | |
download | systemtap-steved-3596cbca20e5ef0f110ffd342db6d0e4278e81ba.tar.gz systemtap-steved-3596cbca20e5ef0f110ffd342db6d0e4278e81ba.tar.xz systemtap-steved-3596cbca20e5ef0f110ffd342db6d0e4278e81ba.zip |
2007-04-10 Martin Hunt <hunt@redhat.com>
* stp_check.in: Fixes to make sure debugfs or relayfs are mounted
exactly where we expect and other mounts are ignored.
Diffstat (limited to 'stp_check.in')
-rwxr-xr-x | stp_check.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stp_check.in b/stp_check.in index 3f7fe0a8..c5adf4e5 100755 --- a/stp_check.in +++ b/stp_check.in @@ -8,12 +8,12 @@ RELAYFS_FS=`grep relayfs_create_dir /proc/kallsyms` RELAY=`grep relay_open /proc/kallsyms` if [ -n "$RELAY" -a -z "$RELAYFS_FS" ] then - MOUNT=`mount | grep debugfs |awk '{print $1}'` + MOUNT=`mount | grep "/sys/kernel/debug" |awk '{print $1}'` if [ "$MOUNT" != "debugfs" ] then mount -t debugfs debugfs /sys/kernel/debug fi - MOUNT=`mount | grep debugfs |awk '{print $1}'` + MOUNT=`mount | grep "/sys/kernel/debug" |awk '{print $1}'` if [ "$MOUNT" != "debugfs" ] then exit 1 @@ -26,7 +26,7 @@ then mkdir /mnt/relay fi -MOUNT=`mount | grep relayfs |awk '{print $1}'` +MOUNT=`mount | grep "/mnt/relay" |awk '{print $1}'` if [ "$MOUNT" != "relayfs" ] then mount -t relayfs relayfs /mnt/relay |