workstation-ostree-config/compose.sh
2022-08-14 23:09:43 +02:00

12 lines
274 B
Bash
Executable file

#!/bin/sh
set -eu
CACHE=/var/cache/x1-gen7-sway-ostree
REPO=/srv/ostree/repo
mkdir -p $CACHE
if [ ! -d $REPO/objects ]; then
ostree --repo=$REPO init --mode=archive-z2
fi
rpm-ostree compose tree --unified-core --cachedir=$CACHE --repo=$REPO x1-gen7-sway-desktop.yaml