diff --git a/README.md b/README.md index 50d024c..1782642 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,15 @@ This is the sources to build system images of ServNest using mkosi. You can then use them with systemd-nspawn. +This repository also contains configuration files and installation scripts inside `install` that may also be useful without mkosi. + ## Usage This generator allows to build images for both Arch Linux and Debian Testing, you can replace `` 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/servnest-` by running `mkosi --force -d ` from this directory (`--force` will erase an already existing image). +You can generate a new image in `/var/lib/machines/servnest-` by running `mkosi --force -d ` from this repository (`--force` erases an already existing image). -You will need to copy `mkosi.nspawn` into `/etc/systemd/nspawn/servnest-.nspawn` to allow the container to use network without restrictions. +You need to copy `mkosi.nspawn` into `/etc/systemd/nspawn/servnest-.nspawn` to allow the container to use network without restrictions. You can then boot the container: ``` @@ -19,11 +21,9 @@ machinectl shell servnest- 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: 1. Load configuration from `mkosi.default` and `mkosi.default.d//mkosi.default` -2. Add `mkosi.skeleton` -3. Install packages according to configuration -4. Run `mkosi.prepare` -5. Add `mkosi.extra` -6. Run `mkosi.postinst` +2. Install packages according to configuration +3. Copy this repository to the container root +4. Run `mkosi.postinst`, which runs specific scripts inside `install`, which do configuration (depending on the distribution) ## License