sculpt: let depot/public_rw depend on update state
By running those components only when needed, the graph stays simpler in the normal state.
This commit is contained in:
parent
1afec11dfc
commit
e9f40e9d68
|
@ -1056,9 +1056,12 @@ void Sculpt::Main::_generate_runtime_config(Xml_generator &xml) const
|
||||||
xml.node("start", [&] () {
|
xml.node("start", [&] () {
|
||||||
gen_chroot_start_content(xml, name, path, w); }); };
|
gen_chroot_start_content(xml, name, path, w); }); };
|
||||||
|
|
||||||
chroot("depot_rw", "/depot", WRITEABLE);
|
if (_update_running()) {
|
||||||
chroot("depot", "/depot", READ_ONLY);
|
chroot("depot_rw", "/depot", WRITEABLE);
|
||||||
chroot("public_rw", "/public", WRITEABLE);
|
chroot("public_rw", "/public", WRITEABLE);
|
||||||
|
}
|
||||||
|
|
||||||
|
chroot("depot", "/depot", READ_ONLY);
|
||||||
}
|
}
|
||||||
|
|
||||||
_network.gen_runtime_start_nodes(xml);
|
_network.gen_runtime_start_nodes(xml);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user