summaryrefslogtreecommitdiff
path: root/doc/arch
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-15 08:11:11 +0300
committerSimon Glass <sjg@chromium.org>2021-03-27 05:04:31 +0300
commit1758551ec9526d56303a2b5cf1f58147e66945ed (patch)
tree8e8b35f4dadae793cd6668d10f958f0337191806 /doc/arch
parent803e9c1c94d06cfab43606056c653268e12926d8 (diff)
downloadu-boot-1758551ec9526d56303a2b5cf1f58147e66945ed.tar.xz
sandbox: Provide a way to bind fixed/removeable devices
At present when a file is bound to a host device it is always marked as removeable. Arguably the device is removeable, since it can be unbound at will. However while it is bound, it is not considered removable by the user. Also it is useful to be able to model both fixed and removeable devices for code that distinguishes them. Add a -r flag to the 'host bind' command and plumb it through to provide this feature. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'doc/arch')
-rw-r--r--doc/arch/sandbox.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/arch/sandbox.rst b/doc/arch/sandbox.rst
index 8b18a22117..e052b6bdb0 100644
--- a/doc/arch/sandbox.rst
+++ b/doc/arch/sandbox.rst
@@ -389,6 +389,8 @@ the contents of the root directory on the second partion of the image
=>host bind 0 ./disk.raw
=>ls host 0:2
+The device can be marked removeable with 'host bind -r'.
+
A disk image can be created using the following commands::
$> truncate -s 1200M ./disk.raw