index
bootup configuration
this will explain how minux boots up and how to add your own instructions to it.
while it is intended to be used by software, you could add your own instructions in there as well

bootup stages
minux has 2 stages where a program can insert instructions, stage1 and stage 2
stage 1 happens very early and before any devices or programs are loaded, things that should load first should happen here
stage 2 happens just before login when most things are loaded, things that should load last should happen here
splitting it up allows for libraries and functions to load first so that their depencency's can boot up later

editing stage files
to allow each program access to the stage files a system is in place to generate them
the stage files can be found at /boot/stage.1 and /boot/stage.2, do not alter these files directly
to add instructions to the stages you create a file in either /boot/stage1/ or /boot/stage2
in said file you enter lua code, in stage1 you can use minux and craftos functions but no others are loaded yet
in stage2 you can use all lua functions, since they loaded in stage1
to trigger rebuild, run "mapt update", installing or removing does as well.

service.d
service.d is in essence the same thing but used for a different purpuse,
it is made for a service that needs to run after stage2 (think servers or control systems) before login
it works the same way as the stages but with /boot/service.d and /boot/service/
same deal as above, put your instructions file in /boot/service/ and update

override.d
override.d is a method used to override normal bootup procedure
only one program can use this file, your program should provide it
it does what the name says, it overrides normal bootup and switches to
the script you provide allowing you to turn a machine into a dedicated device

note: after your script ends normal procedure continues, if you want to prevent that
your program should call a reboot in stead of allowing regular boot