Add a handler for changing the boot environment.