Skip to content

Provides source for a debian package that installs a network-accessible recovery environment

License

Notifications You must be signed in to change notification settings

jwk404/recovery-environment

 
 

Repository files navigation

Recovery Environment

This project implements a debian package that allows for the easy creation, installation, and updating of a network-accessible recovery environment.

The overall structure of the project is simple, though not entirely obvious. The stage1 script is the primary build script; it constructs the recovery environment package, which can then be installed on any system with a compatible architecture. The debian/postinst script functions as stage 2; it runs when the package is installed on the target system, and copies system-specific information into the recovery environment. Finally, there is the recovery_sync script. This script is intended to be run by automation on the target system whenever a significant configuration change occurs. The script itself copies config data into the recovery environment so that it remains accessible over the network.

The basics of the init system that the recovery environment uses are based on the mkinitcpio project.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

  • debhelper
  • dropbear

Requires that systemd-networkd be in use for networking config, and requires a ZFS boot/root pool. Also requires that the envblock feature be present in the system's version of GRUB, and that the ZFS version be recent enough to use it.

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the GPLv2 - see the LICENSE.md file for details

Acknowledgments

  • mkinitcpio for creating the init automation that this was initially developed from.

About

Provides source for a debian package that installs a network-accessible recovery environment

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 93.0%
  • Makefile 5.4%
  • HTML 1.6%