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 **Note:** to just update the image, follow the instructions from
- [Build image (using mkosi)](#build-image-using-mkosi) - [Build image (using mkosi)](#build-image-using-mkosi)
- [Set permissions for image](#set-permissions-for-image) - [Set permissions for image](#set-permissions-for-image)
...@@ -32,7 +35,9 @@ git update-index --assume-unchanged /README.md ...@@ -32,7 +35,9 @@ git update-index --assume-unchanged /README.md
``` ```
Tip: `git status -uno` shows which *tracked* files are modified, ignoring untracked ones. 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 ```bash
cd /var/local/mkosi cd /var/local/mkosi
# if not existing yet # if not existing yet
...@@ -42,7 +47,8 @@ img_name=xcache-$(date +%Y-%m-%d-%H%M) ...@@ -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 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 ```bash
img_name=xcache-$(date +%Y-%m-%d-%H%M) img_name=xcache-$(date +%Y-%m-%d-%H%M)
build_image.sh /var/lib/machines/$img_name build_image.sh /var/lib/machines/$img_name
... ...
......