Skip to content

Commit 7134beb

Browse files
bullhhszyZR233
authored
delete Initrd property (#285)
* delete chosen node initrd propertys --------- Co-authored-by: szy <[email protected]> Co-authored-by: 周睿 <[email protected]>
1 parent 1ab2199 commit 7134beb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/vmm/fdt/create.rs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,22 @@ pub fn update_fdt(fdt_src: NonNull<u8>, dtb_size: usize, vm: VMRef) {
290290
previous_node_level = node.level;
291291

292292
for prop in node.propertys() {
293+
if prop.name.starts_with("linux,initrd-") {
294+
if node.name() == "chosen" {
295+
info!(
296+
"Skipping property: {}, belonging to node: {}",
297+
prop.name,
298+
node.name()
299+
);
300+
continue;
301+
} else {
302+
warn!(
303+
"Find property: {}, belonging to node: {}",
304+
prop.name,
305+
node.name()
306+
);
307+
}
308+
}
293309
new_fdt.property(prop.name, prop.raw_value()).unwrap();
294310
}
295311
}

0 commit comments

Comments
 (0)