Runtime for saving copies of Sculpt's report fs

Fixes #2849
This commit is contained in:
Norman Feske 2018-06-26 15:36:01 +02:00
parent 6c6b19b198
commit 46241da795
6 changed files with 67 additions and 0 deletions

View File

@ -11,3 +11,4 @@ _/pkg/themed_wm
_/pkg/sticks_blue_backdrop
_/pkg/nano3d
_/pkg/fonts_fs
_/pkg/report_dump

View File

@ -691,6 +691,17 @@ append manual_deploy_config {
</start>
-->
<!--
<start name="report_dump" pkg="} [depot_user]/pkg/[current_pkg report_dump] {">
<route>
<service name="File_system" label="report">
<parent label="report"/> </service>
<service name="File_system" label="target">
<child name="default_fs_rw"/> </service>
</route>
</start>
-->
</config>}
set fd [open [run_dir]/genode/manual_deploy.config w]

View File

@ -0,0 +1,2 @@
A subsystem that periodically copies Sculpt's report file system to the
default file system.

View File

@ -0,0 +1,7 @@
_/src/noux
_/src/bash-minimal
_/src/coreutils
_/src/libc
_/src/posix
_/src/init
_/src/vfs

View File

@ -0,0 +1 @@
2018-06-18 d22c8cc52bec27c129a4b7844f93d4149f4a93db

View File

@ -0,0 +1,45 @@
<runtime ram="50M" caps="1000" binary="noux">
<requires>
<timer/>
<file_system label="report" writeable="no"/>
<file_system label="target" writeable="yes"/>
</requires>
<config stdin="/dev/null" stdout="/dev/log" stderr="/dev/log">
<fstab>
<tar name="bash-minimal.tar" />
<tar name="coreutils.tar" />
<dir name="dev"> <zero/> <null/> <log/> </dir>
<dir name="rw"> <fs label="target"/> </dir>
<dir name="report"> <fs label="report"/> </dir>
<dir name="tmp"> <ram /> </dir>
<inline name=".bash_profile">
while true; do
export VERSION=`printf "%(%T)T"`
mkdir "/rw/$VERSION"
cp -r /report/* "/rw/$VERSION/"
sleep 10
done
</inline>
</fstab>
<start name="/bin/bash">
<arg value="--login" />
<env name="HOME" value="/" />
<env name="TERM" value="screen" />
</start>
</config>
<content>
<rom label="ld.lib.so"/>
<rom label="libc.lib.so"/>
<rom label="libm.lib.so"/>
<rom label="noux"/>
<rom label="libc_noux.lib.so"/>
<rom label="posix.lib.so"/>
<rom label="bash-minimal.tar"/>
<rom label="coreutils.tar"/>
<rom label="vfs.lib.so"/>
</content>
</runtime>