Merge pull request #2080 from focus-zhaos/initrd-doc

docs: fix brackets usage error for developer guide
This commit is contained in:
Jakob Naucke 2021-06-23 13:13:43 +02:00 committed by GitHub
commit 2a1b6d376a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -356,10 +356,10 @@ You MUST choose one of `alpine`, `centos`, `clearlinux`, `euleros`, and `fedora`
Optionally, add your custom agent binary to the rootfs with the following, `LIBC` default is `musl`, if `ARCH` is `ppc64le`, should set the `LIBC=gnu` and `ARCH=powerpc64le`:
```
$ export ARCH=$(shell uname -m)
$ export ARCH=$(uname -m)
$ [ ${ARCH} == "ppc64le" ] && export LIBC=gnu || export LIBC=musl
$ [ ${ARCH} == "ppc64le" ] && export ARCH=powerpc64le
$ sudo install -o root -g root -m 0550 -T ../../../src/agent/target/$(ARCH)-unknown-linux-$(LIBC)/release/kata-agent ${ROOTFS_DIR}/sbin/init
$ sudo install -o root -g root -m 0550 -T ../../../src/agent/target/${ARCH}-unknown-linux-${LIBC}/release/kata-agent ${ROOTFS_DIR}/sbin/init
```
### Build an initrd image