From b82b1f94d44fb5fd1305447a877b99153038863d Mon Sep 17 00:00:00 2001 From: randogoth Date: Sun, 19 Oct 2025 17:08:15 +0300 Subject: [PATCH] home folder as volume --- README.md | 4 ++++ compose.yml | 1 + 2 files changed, 5 insertions(+) diff --git a/README.md b/README.md index c50fcef..2cabf7d 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,7 @@ All persistent user data inside the guest lives under `/home/dosuser/.dosemu`, w - **`allowed_repo/` volume** – drop files here on the host; they are copied into C:\ during login. - **`config/dos_allowed`** – list relative paths (from `allowed_repo/`) to permit when `DOS_ALLOW_MODE=list`. With `DOS_ALLOW_MODE=all` every file in the repo is staged. - **`dos_env/` templates** – place `AUTOEXEC.BAT` and/or `CONFIG.SYS` to control boot scripts. +- **`dos_home/` volume** – bind-mounted to `/home/dosuser`; persists the DOS user profile, `.dosemu` state, SSH keys, etc. - **Pre-boot hook** – create an executable `dos_env/pre-boot.sh` (or point `DOS_PRE_BOOT_HOOK` at another path). It runs as `dosuser` immediately before dosemu starts, with helper environment variables (`C_DRIVE`, `DOSEMU_DIR`, `ALLOWED_REPO`, `SVARDOS_ROOT`, `SVARDOS_BASE`) so you can copy, delete, or patch files on the DOS drive. - **Forcing a reinstall** – set `DOS_FORCE_INSTALL=1` in the environment before logging in; the script re-seeds the drive from `/opt/svardos/base`. @@ -84,6 +85,9 @@ allowed_repo/ games/ doom/ doom.exe +dos_home/ + .ssh/ + authorized_keys dos_env/ AUTOEXEC.BAT CONFIG.SYS diff --git a/compose.yml b/compose.yml index b2573ec..392beaf 100644 --- a/compose.yml +++ b/compose.yml @@ -18,4 +18,5 @@ services: - ./allowed_repo:/opt/allowed_repo - ./config/dos_allowed:/etc/dos_allowed:ro - ./dos_env:/etc/dos_env + - ./dos_home:/home/dosuser restart: unless-stopped