Run maintenance tasks outside the OS
Switch branches/tags
Nothing to show
Latest commit 1c5ab87 Sep 7, 2013 @g2p g2p Update description
Failed to load latest commit information.
bin kexec shutdown fix Sep 7, 2013
maintboot Initial Sep 7, 2013
.gitignore Ignore some built files Sep 7, 2013
COPYING Add a license file Sep 7, 2013 Initial Sep 7, 2013 Update description Sep 7, 2013


maintboot runs commands outside of the current OS, with exclusive access to the system and hardware.

This can be useful to run maintenance tasks, like repartitioning, in a controlled environment.

Maintboot builds an appliance on the fly from a list of packages (using supermin). It then loads the appliance with kexec, bypassing the bios, and runs the maintenance script in that new context.


Write an initscript

maintboot --pkgs pkg1 pkg2 --initscript init

Most things are left to the initscript, like parsing the kernel commandline (may need some kind of encoding) and choosing to either reboot or shutdown after maintenance.