Commit Graph

15 Commits

Author SHA1 Message Date
Andrew J. Hesford 9d7eba40d1 Improve version handling in the repository and ZBM images
- Track installed version in ${zfsbootmenu_module_root}/zbm-release

- Install zbm-release as /etc/zbm-release in ZFSBootMenu images

- Add releng/version.sh to manage repository versioning

- Mark post-release development versions as part of release tagging

- Improve version handling in ZFSBootMenu build containers:

  * zbm-builder.sh: allow temporary, writable overlays of /zbm

  * releng/docker/build-init.sh: update ZBM version when possible

  * releng/docker/image-build.sh: install git in standard images
2023-11-26 15:03:46 -05:00
Zach Dykstra d7ebc8429d examples: modernize, install
Remove kboot.conf, this was primarily used when POWER9/petitboot was
still being targeted. Update syslinux.cfg to demonstrate how to boot
fixed name files. Install examples/ via Makefile.
2023-11-07 10:27:59 -06:00
classabbyamp b15890a0de docs/man/: convert pod manpages to rst
- re-title config.yaml manual page
- pregenerate manpages in docs/man/dist
2022-12-20 21:53:42 -06:00
Zach Dykstra 17fd12d2d2 Move all documentation to docs/ 2022-03-17 21:52:14 -05:00
Zach Dykstra 306f36b41c
Fix install location for common module files 2022-02-12 12:13:09 -06:00
Zach Dykstra 91b4b3bc4d De-prioritize Dracut as the primary generator
All core ZFSBootMenu libraries / hooks / binaries have been moved to a
generic 'zfsbootmenu' directory intended to be installed in /usr/share.
The dracut-specific module-setup.sh script has been moved to a 'dracut'
directory and it, along with the 'initcpio' hook scripts, have been
adapted to use common tooling in 'zfsbootmenu/install-helpers.sh'. Both
of these refer to the core components in '/usr/share/zfsbootmenu' when
creating a new image. The zbm-kcl utilit looks there by default.

The testing tools are now capable of producing images with mkinitcpio.

Co-authored-by: Zach Dykstra <dykstra.zachary@gmail.com>
Co-authored-by: Andrew J. Hesford <ajh@sideband.org>
2022-01-27 12:56:11 -05:00
Andrew J. Hesford 9e748be399 Makefile: rewrite rules to capture new bin or man additions 2022-01-26 00:24:04 -05:00
Andrew J. Hesford 8d4d776d5b Makefile: recursively install dracut module 2021-08-27 10:56:08 -04:00
Andrew J. Hesford f962f507a5 Use configurable destinations for all paths in Makefile
By default, PREFIX now affects all components except etc/zfsbootmenu.
Paths for configuration files, dracut modules, man pages, example
contents and binaries are now individually configurable.

Defaults preserve expected paths in xbps-src.
2021-03-04 08:23:27 -05:00
Andrew J. Hesford a9f7642ca1 Fix contrib/ and tmux.conf installation in Makefile 2020-12-15 10:43:45 -05:00
Andrew J. Hesford 88818a9882 Support optional "teardown" script to run before kexec
A new `zfsbootmenu_teardown` dracut option has been added to
`module-init.sh` that, when set to a path that refers to an executable,
will install the named executable as `/libexec/zfsbootmenu-teardown` in
the initramfs. In `kexec_kernel`, if `/libexec/zfsbootmenu-teardown` is
found to exist and be executable, the script will be run immediately
before the final `kexec` call to jump into the new kernel.
2020-12-08 09:44:08 -05:00
Zach Dykstra d51ab113d6 Update makefile
- Install man pages to the correct system directories
- Install config.yaml instead of config.ini
- Add a default no-op target in Makefile
2020-08-19 21:51:36 -05:00
Andrew J. Hesford 5fc043ff33 Set proper file modes for configuration files. 2020-03-04 14:52:16 -05:00
Zach Dykstra 5fecb80f5b Bump to 0.7.6 2019-12-31 17:26:48 -06:00
Zach Dykstra 7f09058c2c Add Makefile, update documentation, clean up VERSION
* Add a basic Makefile, that copies files to to the system. Limited
  test on a Void linux system only.

* Clean up the README.md to include more detailed documentation on
  integration with rEFInd and efibootmgr, how to use generate-zbm, and
  other tidbits.

* Remove the VERSION file loading from generate-zbm, prefer the internal
  version string now. This simplifies deployment greatly.
2019-12-31 16:15:45 -06:00