summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2021-04-24 23:07:01 +0100
committerDiederik de Haas <didi.debian@cknow.org>2021-06-24 19:33:33 +0200
commit821aff4e192be913a9b0e18779bbd505de9f8296 (patch)
tree60b92c7eb0e277bf4c3e6f4fcdde60786729263f /README.md
parent5aadb0116a468d8fef5155e93fcc219ad58c2e81 (diff)
Makefile: Automatically use fakemachine if not uid 0
fakemachine launches a virtual machine reusing the host system's /usr, and runs commands as root on that virtual machine. It's used by debos, but can also be used to wrap arbitrary commands, in particular vmdb2; it's enough to run the parts of vmdb2 that need to mount filesystems and run apt. This won't work if fakemachine isn't available (in particular on non-x86), but that seems better than just failing altogether. Signed-off-by: Simon McVittie <smcv@debian.org>
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 6 insertions, 2 deletions
diff --git a/README.md b/README.md
index c65fb37..471ec71 100644
--- a/README.md
+++ b/README.md
@@ -30,10 +30,12 @@ Debian Buster (10) or higher system:
* debootstrap
* time
* kpartx
+* fakemachine (optional, only available on amd64)
To install these (as root):
```shell
apt install -y vmdb2 dosfstools qemu-utils qemu-user-static debootstrap binfmt-support time kpartx
+ apt install -y fakemachine
```
Do note that –at least currently– vmdb2 uses some syntax that is available
@@ -50,8 +52,10 @@ little as possible in a parametrized way. The master recipe is
[raspi_master.yaml](raspi_master.yaml).
A Makefile is supplied to drive the build of the recipes into images.
-Some portions of building the image will require root privileges, thus
-you'll need to execute *make* below as root.
+If `fakemachine` is installed, it can be run as an unprivileged user.
+Otherwise, because some steps of building the image require root privileges,
+you'll need to execute `make` as root.
+
The argument to `make` is constructed as follows:
`raspi_<model>_<release>.<result-type>`