kOS/boot/rocket.ks

18 lines
570 B
Plaintext

// rocketOS bootstrapping sequence
// To maximize space, remove this file first thing. The in-memory copy
// will still run to completion, and it should only run once per vessel.
deletepath("/boot/rocket").
// Install software.
compile "0:/lib/navigation" to "1:/lib/navigation".
compile "0:/lib/throttle" to "1:/lib/throttle".
compile "0:/rocket/ui" to "1:/init".
compile "0:/rocket/launch" to "1:/rocket/launch".
copypath("0:/rocket/execnode", "1:/rocket/execnode"). // larger when compiled
// Set OS to boot and restart.
set core:bootfilename to "/init".
reboot.