diff --git a/README.md b/README.md index 574adc3..4ba78e7 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,25 @@ # ServNest system images generator -This is the sources to build system images of ServNest using mkosi. You can then use them with systemd-nspawn. +This is the sources to build system images of ServNest using mkosi 20. 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. +This repository also contains configuration files and installation scripts inside `install` that may also be useful for the manual installation process, 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. +This generator allows to build images for both Arch Linux and Debian Testing, you can replace `` by either `sn-arch` or `sn-debian` in the following examples. Note that mkosi may require tools that are not available on your distribution. First: -- Put your SSH public key in `root/.ssh/authorized_keys` -- Put a SFTPGo binary as `usr/local/bin/sftpgo` +- Put your SSH public key in `mkosi.extra/root/.ssh/authorized_keys` +- Put a SFTPGo binary as `mkosi.extra/usr/local/bin/sftpgo` -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 can generate a new image in `/var/lib/machines/` by running `mkosi --force --image build` from this repository (`--force` erases an already existing image). -You 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/.nspawn` to allow the container to use network without restrictions. You can then boot the container: ```shell -machinectl start servnest- -machinectl shell servnest- +machinectl start +machinectl shell ``` 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: diff --git a/mkosi.conf b/mkosi.conf index e37d443..1769a81 100644 --- a/mkosi.conf +++ b/mkosi.conf @@ -1,13 +1,11 @@ -[Validation] -Autologin = yes - [Output] Format = directory -Hostname = servnest.test CacheDirectory = ../mkosi.cache/ OutputDirectory = /var/lib/machines [Content] +Autologin = yes +Hostname = servnest.test WithDocs = yes WithNetwork = yes Packages = diff --git a/mkosi.extra/srv/servnest/core b/mkosi.extra/srv/servnest/core index 63554b4..808de3f 160000 --- a/mkosi.extra/srv/servnest/core +++ b/mkosi.extra/srv/servnest/core @@ -1 +1 @@ -Subproject commit 63554b4908a088f5da0dc3a5806415cfa7b88701 +Subproject commit 808de3fdbfb87630970ddcdb49cfd14c7ba3c127 diff --git a/mkosi.presets/sn-arch.conf b/mkosi.images/sn-arch.conf similarity index 100% rename from mkosi.presets/sn-arch.conf rename to mkosi.images/sn-arch.conf diff --git a/mkosi.presets/sn-debian.conf b/mkosi.images/sn-debian.conf similarity index 96% rename from mkosi.presets/sn-debian.conf rename to mkosi.images/sn-debian.conf index c707997..fc07b40 100644 --- a/mkosi.presets/sn-debian.conf +++ b/mkosi.images/sn-debian.conf @@ -13,7 +13,6 @@ Packages = knot-dnsutils knot-dnssecutils php-sqlite3 - golang-1.19 openssh-server iputils-ping gettext