diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-02-20 17:43:14 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-02-20 17:43:14 +0100 |
commit | f72eb627c789961368bf18aa8069f6db6f332f9a (patch) | |
tree | 9c80324c8a49c2ef48612afc973613dd7962eef7 | |
parent | fa62d07ab074e2396080e1cf9cefae93b813c25f (diff) |
create boot mountpoint
-rw-r--r-- | src/main.rs | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 36c53f4..e5ceecf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -459,11 +459,28 @@ fn write_root( }, })?; + let boot_inode = tree.add(SqsSourceFile { + path: PathBuf::from("/boot"), + 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 { data: SqsSourceData::Dir(Box::new( - vec![(OsString::from("bin"), bin_inode)].into_iter(), + vec![ + (OsString::from("bin"), bin_inode), + (OsString::from("boot"), boot_inode), + ] + .into_iter(), )), uid: 0, gid: 0, |