Created while learning systemd-nspawn and mkosi.
- Install
mkosi
withsudo pip3 install git+https://github.com/systemd/mkosi.git
as packaged versions do not supportEnvironment=
correctly. - Xorg
- debootstrap
- systemd
- systemd-container
- zstd
mkosi.default
holdsPassword=
(default issteam
)mkosi.default
hasSTEAM_HOSTNAME
for container hostnamemkosi.default
hasSTEAM_USER
(default issteam
) for runningsteam
- Execute
sudo mkosi boot
in repo root - Login as
STEAM_USER
usingPassword
value frommkosi.default
- Run
steam
When you are happy with image move image.{raw,nspawn}
from mkosi.output
to better location and use with running:
sudo systemd-nspawn --image=image.raw --settings=trusted
You may also want to rename image.raw
and image.nspawn
to something more meaningful by replacing image
in both
file names to another string (must be same for both).
- Section
[Output]
seemed to cause ignoring[Files]
section in.nspawn
whenmkosi boot
was used.
- Use bind mount for Steam data makinge easier to replace system.
- Bring in systemd-sysext.