From c688cb720192f955b77ea8e582debd0831e8a626 Mon Sep 17 00:00:00 2001 From: HimbeerserverDE Date: Tue, 21 Mar 2023 18:57:42 +0100 Subject: create /run mountpoint --- src/main.rs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/src/main.rs b/src/main.rs index 32e6154..ccba973 100644 --- a/src/main.rs +++ b/src/main.rs @@ -525,6 +525,19 @@ fn write_root( }, })?; + let run_inode = tree.add(SqsSourceFile { + path: PathBuf::from("/run"), + content: SqsSource { + data: SqsSourceData::Dir(Box::new(Vec::new().into_iter())), + uid: 0, + gid: 0, + mode: 0o755, + modified: 0, + xattrs: HashMap::new(), + flags: 0, + }, + })?; + tree.add(SqsSourceFile { path: PathBuf::from("/"), content: SqsSource { @@ -536,6 +549,7 @@ fn write_root( (OsString::from("data"), data_inode), (OsString::from("proc"), proc_inode), (OsString::from("tmp"), tmp_inode), + (OsString::from("run"), run_inode), ] .into_iter(), )), @@ -642,6 +656,19 @@ fn write_empty_root(partition: &mut StreamSlice) -> anyhow::Result<()> { }, })?; + let run_inode = tree.add(SqsSourceFile { + path: PathBuf::from("/run"), + content: SqsSource { + data: SqsSourceData::Dir(Box::new(Vec::new().into_iter())), + uid: 0, + gid: 0, + mode: 0o755, + modified: 0, + xattrs: HashMap::new(), + flags: 0, + }, + })?; + tree.add(SqsSourceFile { path: PathBuf::from("/"), content: SqsSource { @@ -653,6 +680,7 @@ fn write_empty_root(partition: &mut StreamSlice) -> anyhow::Result<()> { (OsString::from("data"), data_inode), (OsString::from("proc"), proc_inode), (OsString::from("tmp"), tmp_inode), + (OsString::from("run"), run_inode), ] .into_iter(), )), -- cgit v1.2.3