diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 7470d91..853ded2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -575,6 +575,19 @@ fn write_empty_root(partition: &mut StreamSlice<File>) -> anyhow::Result<()> { }, })?; + let data_inode = tree.add(SqsSourceFile { + path: PathBuf::from("/data"), + 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 { @@ -583,6 +596,7 @@ fn write_empty_root(partition: &mut StreamSlice<File>) -> anyhow::Result<()> { (OsString::from("bin"), bin_inode), (OsString::from("dev"), dev_inode), (OsString::from("boot"), boot_inode), + (OsString::from("data"), data_inode), ] .into_iter(), )), |