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:
Norman Feske 2019-02-22 16:55:44 +01:00 committed by Christian Helmuth
parent 1afec11dfc
commit e9f40e9d68
1 changed files with 6 additions and 3 deletions

View File

@ -1056,9 +1056,12 @@ void Sculpt::Main::_generate_runtime_config(Xml_generator &xml) const
xml.node("start", [&] () {
gen_chroot_start_content(xml, name, path, w); }); };
chroot("depot_rw", "/depot", WRITEABLE);
chroot("depot", "/depot", READ_ONLY);
chroot("public_rw", "/public", WRITEABLE);
if (_update_running()) {
chroot("depot_rw", "/depot", WRITEABLE);
chroot("public_rw", "/public", WRITEABLE);
}
chroot("depot", "/depot", READ_ONLY);
}
_network.gen_runtime_start_nodes(xml);