isospin-init.dhall
1 -- nix/lib/scripts/isospin-init.dhall 2 -- 3 -- Firecracker VM init script 4 -- Environment variables are injected by render.dhall-with-vars 5 6 let envExports : Text = env:ENV_EXPORTS as Text 7 let baseInit : Text = env:BASE_INIT as Text 8 let networkSetup : Text = env:NETWORK_SETUP as Text 9 let buildSection : Text = env:BUILD_SECTION as Text 10 let interactiveSection : Text = env:INTERACTIVE_SECTION as Text 11 12 in '' 13 #!/bin/sh 14 set -e 15 16 export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin 17 ${envExports} 18 19 ${baseInit} 20 21 hostname builder 22 23 ${networkSetup} 24 25 ${buildSection} 26 27 # Drop to interactive shell if no build command 28 ${interactiveSection} 29 ''