From d8a36528f5178a657edce7e0822f096d1675d4e3 Mon Sep 17 00:00:00 2001 From: deeplow Date: Thu, 2 Feb 2023 10:32:23 +0000 Subject: [PATCH] Add note to bind-dirs when dir does not exist yet The doc on bind-dirs only provided an example where /var/lib/tor was made persistent in sys-whonix. However, if one tries to make persistent any directory that wasn't already present in the template qube, it would not persist as expected. The issue QubesOS/qubes-issues#5862 demonstrates this exact confusion. This commit adds a note about this situation. Fixes QubesOS/qubes-issues#5862 --- user/advanced-topics/bind-dirs.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/user/advanced-topics/bind-dirs.md b/user/advanced-topics/bind-dirs.md index 2266d91e..c33f52e3 100644 --- a/user/advanced-topics/bind-dirs.md +++ b/user/advanced-topics/bind-dirs.md @@ -44,6 +44,14 @@ Inside the app qube. 4. Save. +> **Note**: If the directory you are trying to persist doesn't already exist in the app qube, you'll need to create the directory with its full path, under `/rw/bind-dirs`. In this case you would do: +> +> ``` +> sudo mkdir -p /rw/bind-dirs/var/lib/tor +> ``` +> +> This case happens only when the template on which this app qube is based does have this directory. + 5. Reboot the app qube. 6. Done.