From b05258ebf1a86b1f05af261e43707f69f48939c4 Mon Sep 17 00:00:00 2001 From: akitaSummer Date: Tue, 27 Feb 2024 15:33:45 +0800 Subject: [PATCH] feat: update nydusd version --- .gitignore | 1 + packages/deamon/src/config.rs | 12 +----------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 31219eb..3d6a49b 100644 --- a/.gitignore +++ b/.gitignore @@ -119,3 +119,4 @@ packages/downloader/test/nginx.conf packages/binding/index.d.ts .DS_Store package-lock.json +.vscode \ No newline at end of file diff --git a/packages/deamon/src/config.rs b/packages/deamon/src/config.rs index f6f7c97..c45bd9d 100644 --- a/packages/deamon/src/config.rs +++ b/packages/deamon/src/config.rs @@ -290,19 +290,9 @@ impl Overlay { } } - let workdir = match &self.workdir { - Some(s) => s, - None => { - return Err(anyhow!( - "workdir is empty, node_modules_dir is {}", - self.node_modules_dir - )) - } - }; - let mount_str = format!( r#"mount -t overlay overlay -o lowerdir={},upperdir={},workdir={} {}"#, - self.mnt, self.upper, workdir, self.node_modules_dir + self.mnt, self.upper, &self.workdir, self.node_modules_dir ); match start_command(&mount_str) { Ok(output) => {