aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs19
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,