mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
sculpt.run: customize initial /config/managed/
In a Sculpt system based on the upcoming phone_manager, the event filter obtains its static configuration from /config/managed/event_filter. Without the requirement for changes at runtime, there is no need to have the phone_manager in the loop after all. Without this patch however, this file was always initialized with the template gems/sculpt/event_filter/default, which was presumably used only at boot time until the sculpt manager has produced the first generated event-filter configuration. This patch applies the choice of optional configs - i.e., a custom event_filter config - to both the config/ and the initial content of config/managed/. So in cases where the /config/managed/event_filter remains entirely static, the latter properly reflects the choosen variant.
This commit is contained in:
parent
236ebecf44
commit
8b85eb9b34
@ -717,9 +717,14 @@ puts $fd "<query/>"
|
||||
close $fd
|
||||
|
||||
foreach config { fonts wifi runtime event_filter } {
|
||||
set from [ingredient_path $config default]
|
||||
check_xml_syntax $from
|
||||
file copy $from [managed_config_path $config] }
|
||||
set ingredient [single_ingredient $config "default"]
|
||||
if {$ingredient != ""} {
|
||||
set from [ingredient_path $config $ingredient]
|
||||
set to [managed_config_path $config]
|
||||
check_xml_syntax $from
|
||||
copy_file $from $to
|
||||
}
|
||||
}
|
||||
|
||||
copy_file [file join [initial_config_dir] fb_drv] [managed_config_path fb_drv]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user