Commit cfd506ad authored by Franco Fichtner's avatar Franco Fichtner

rc: corrections for mfs handling

parent f7f86de7
...@@ -102,7 +102,7 @@ setup_mfs_link() ...@@ -102,7 +102,7 @@ setup_mfs_link()
# storage underneath to run. # storage underneath to run.
if [ ! -d "${ROOT}${MFS}/${NAME}" ]; then if [ ! -d "${ROOT}${MFS}/${NAME}" ]; then
mkdir -p "${ROOT}${MFS}" mkdir -p "${ROOT}${MFS}" "${MFS}/${NAME}"
mv "${MFS}/${NAME}" "${ROOT}${MFS}" mv "${MFS}/${NAME}" "${ROOT}${MFS}"
# create a symlink underneath as well # create a symlink underneath as well
ln -s "${ROOT}${MFS}/${NAME}" "${MFS}/${NAME}" ln -s "${ROOT}${MFS}/${NAME}" "${MFS}/${NAME}"
...@@ -118,8 +118,8 @@ install_mfs_link() ...@@ -118,8 +118,8 @@ install_mfs_link()
# Redirect persistent, but MFS-bound # Redirect persistent, but MFS-bound
# directory after tmpfs mount. # directory after tmpfs mount.
mkdir -p "${MFS}/${NAME}" mkdir -p "${MFS}"
ln -s "${ROOT}${MFS}/${NAME}" "${MFS}" ln -s "${ROOT}${MFS}/${NAME}" "${MFS}/${NAME}"
} }
remove_mfs_link() remove_mfs_link()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment