mkosi.cache | ||
mkosi.default.d | ||
mkosi.extra | ||
mkosi.skeleton | ||
.gitignore | ||
LICENSE.md | ||
mkosi.default | ||
mkosi.nspawn | ||
mkosi.postinst | ||
mkosi.prepare | ||
README.md |
Niver system images generator
This is the sources to build system images of Niver using mkosi. You can then use them with systemd-nspawn.
Usage
This generator allows to build images for both Arch Linux and Debian Testing, you can replace <sysid>
by either arch
or debian
in the following examples. Note that mkosi may require tools that are not available on your distribution.
You can generate a new image in /var/lib/machines/niver-<sysid>
by running mkosi --force -d <sysid>
from this directory (--force
will erase an already existing image).
You will need to copy mkosi.nspawn
into /etc/systemd/nspawn/niver-<sysid>.nspawn
to allow the container to use network without restrictions.
You can then boot the container:
machinectl start niver-<sysid>
machinectl shell niver-<sysid>
The full explanation of the structure in this repository can be found on the mkosi manpage. Here is a summary of what mkosi will do in this repository:
- Load configuration from
mkosi.default
andmkosi.default.d/<sysid>/mkosi.default
- Add
mkosi.skeleton
- Install packages according to configuration
- Run
mkosi.prepare
- Add
mkosi.extra
- Run
mkosi.postinst
License
Niver system images generator is ethical libre software: you can use, redistribute or modify it under the terms of the CNPL-NAv7+ as found in LICENSE.md or at https://git.pixie.town/thufie/npl-builder.