[Ocfs2-tools-devel] [PATCH] o2cb.init: Reference configfs_path() instead of hardcoded mountpoint
Joel Becker
Joel.Becker at oracle.com
Thu Jul 31 18:26:34 PDT 2008
When unmounting the configfs filesystem, o2cb.init incorrectly
references a hardcoded path. It should be using the configfs_path()
function for backwards compatibility.
Signed-off-by: Joel Becker <joel.becker at oracle.com>
---
vendor/common/o2cb.init.sh | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/vendor/common/o2cb.init.sh b/vendor/common/o2cb.init.sh
index 810b004..e0307bf 100644
--- a/vendor/common/o2cb.init.sh
+++ b/vendor/common/o2cb.init.sh
@@ -1381,7 +1381,7 @@ unload()
# Only unmount configfs if there are no other users
if [ -z "$(ls -1 "$(configfs_path)")" ]
then
- unmount_filesystem "configfs" "/sys/kernel/config"
+ unmount_filesystem "configfs" "$(configfs_path)"
if_fail $?
fi
}
--
1.5.6.3
--
"In the beginning, the universe was created. This has made a lot
of people very angry, and is generally considered to have been a
bad move."
- Douglas Adams
Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127
More information about the Ocfs2-tools-devel
mailing list