assert_spec linux proc tresor_image_file { } { return "vfs_tresor_block.img" } set image_size 32 proc tresor_image_size_mb { } { global image_size return $image_size } append build_components { core init timer server/lx_block server/lx_fs server/vfs app/sequence app/tresor_init_trust_anchor app/tresor_init lib/vfs_tresor_crypto_aes_cbc lib/vfs_tresor_trust_anchor lib/vfs_jitterentropy lib/libc lib/libcrypto } build $build_components create_boot_directory append config { } install_config $config exec rm -rf bin/[tresor_image_file] exec truncate -s [tresor_image_size_mb]M bin/[tresor_image_file] append boot_modules { core init timer lx_block lx_fs sequence vfs vfs.lib.so vfs_jitterentropy.lib.so ld.lib.so libcrypto.lib.so libc.lib.so tresor_init_trust_anchor tresor_init vfs_tresor_trust_anchor.lib.so vfs_tresor_crypto_aes_cbc.lib.so } append boot_modules [tresor_image_file] build_boot_image $boot_modules run_genode_until {.*child "initialize_tresor" exited with exit value 0.*\n} 240 exec cp [run_dir]/genode/encrypted_private_key bin exec cp [run_dir]/genode/superblock_hash bin