Merge pull request #1313 from liubin/doc/add-distro-desc

osbuilder: add description for how to use DISTRO variable
This commit is contained in:
Tim Zhang 2021-02-02 15:19:57 +08:00 committed by GitHub
commit 9a02c81eb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,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.