Skel dest could not exist

Close #2713
This commit is contained in:
topjohnwu 2020-04-20 22:04:57 -07:00
parent d7b87fcb8e
commit 554ebe7206
1 changed files with 1 additions and 0 deletions

View File

@ -303,6 +303,7 @@ public:
const string &dest = node_path();
file_attr a;
getattr(src.data(), &a);
mkdir(dest.data(), 0);
xmount("tmpfs", dest.data(), "tmpfs", 0, nullptr);
VLOGI("mnt_tmp", "tmpfs", dest.data());
setattr(dest.data(), &a);