Update Installation (and image building) instructions authored by Nikolai.Hartmann's avatar Nikolai.Hartmann
---
title: Installation (and image building) instructions
---
**Note:** to just update the image, follow the instructions from
- [Build image (using mkosi)](#build-image-using-mkosi)
- [Set permissions for image](#set-permissions-for-image)
......@@ -32,7 +35,9 @@ git update-index --assume-unchanged /README.md
```
Tip: `git status -uno` shows which *tracked* files are modified, ignoring untracked ones.
# Build image (using mkosi)
# ~~Build image (using mkosi)~~
(this is currently not working since the configuration is incompatible with later mkosi versions).
Use the manual method below.
```bash
cd /var/local/mkosi
# if not existing yet
......@@ -42,7 +47,8 @@ img_name=xcache-$(date +%Y-%m-%d-%H%M)
mkosi -i -t directory -o /var/lib/machines/$img_name |& tee build_$img_name.log
```
**Alternative: Build image using manual `dnf --installroot`**
# Build image using manual `dnf --installroot`
There is a script provided for this:
```bash
img_name=xcache-$(date +%Y-%m-%d-%H%M)
build_image.sh /var/lib/machines/$img_name
......
......