osbuilder: add description for how to use DISTRO variable

Fixes: #1312

Signed-off-by: bin <bin@hyper.sh>
This commit is contained in:
bin 2021-01-22 16:51:36 +08:00
parent 5aef2faa4d
commit 8e2b19ac77

View File

@ -95,6 +95,9 @@ filesystem components to generate an initrd.
3. When generating an image, the initrd is extracted to obtain the base rootfs for
the image.
CentOS is the default distro for building the rootfs, to use a different one, you can set `DISTRO=<your_distro>`.
For example `make USE_DOCKER=true DISTRO=ubuntu rootfs` will make Ubuntu rootfs using Docker.
### Rootfs creation
This section shows how to build a basic rootfs using the default distribution.