assert_spec linux set dd [installed_command dd] create_boot_directory proc tresor_image_name { } { return "vfs_tresor_block.img" } proc tresor_image_size_mb { } { return 4 } proc local_tresor_image { } { return bin/[tresor_image_name] } proc autopilot_tresor_image { } { return /tmp/[tresor_image_name].[exec id -un] } import_from_depot [depot_user]/src/ncurses \ [depot_user]/src/bash \ [depot_user]/src/coreutils build { core timer init lib/ld lib/vfs_tresor lib/vfs_tresor_crypto_aes_cbc lib/vfs_tresor_crypto_memcopy lib/vfs_tresor_trust_anchor lib/vfs_import lib/vfs_jitterentropy lib/vfs_pipe lib/vfs lib/libc lib/libm lib/posix lib/libcrypto test/vfs_stress test/libc server/log_terminal server/report_rom server/fs_rom server/lx_fs server/vfs app/tresor_init_trust_anchor app/tresor_init app/sequence } append config { 2018-01-01 00:01 } install_config $config set shell_script "run/vfs_tresor.sh" set repo "[repository_contains $shell_script]" exec cp $repo/$shell_script bin/ exec rm -rf [local_tresor_image] if { [get_cmd_switch --autopilot] } { exec rm -rf [autopilot_tresor_image] catch { exec $dd if=/dev/urandom of=[autopilot_tresor_image] bs=1M count=[tresor_image_size_mb] } exec ln -sf -T [autopilot_tresor_image] [local_tresor_image] } else { catch { exec $dd if=/dev/urandom of=[local_tresor_image] bs=1M count=[tresor_image_size_mb] } } set boot_modules [build_artifacts] append boot_modules { vfs_tresor.sh } lappend boot_modules [tresor_image_name] build_boot_image $boot_modules run_genode_until {.*"/bin/bash".* exited with exit value 0.*\n} 120 if { [get_cmd_switch --autopilot] } { exec rm -rf [local_tresor_image] exec rm -rf [autopilot_tresor_image] }