mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-29 21:03:03 +00:00
Developer-Guide: Update how to include seccomp in image
Update the developer guide to include documentation for the inclusion of seccomp packages in initrd/rootfs images. Fixes: #339 Signed-off-by: Nitesh Konkar niteshkonkar@in.ibm.com
This commit is contained in:
parent
66ee0e480d
commit
dab26ebf8a
@ -231,9 +231,9 @@ the following example.
|
|||||||
$ export ROOTFS_DIR=${GOPATH}/src/github.com/kata-containers/osbuilder/rootfs-builder/rootfs
|
$ export ROOTFS_DIR=${GOPATH}/src/github.com/kata-containers/osbuilder/rootfs-builder/rootfs
|
||||||
$ sudo rm -rf ${ROOTFS_DIR}
|
$ sudo rm -rf ${ROOTFS_DIR}
|
||||||
$ cd $GOPATH/src/github.com/kata-containers/osbuilder/rootfs-builder
|
$ cd $GOPATH/src/github.com/kata-containers/osbuilder/rootfs-builder
|
||||||
$ script -fec 'sudo -E GOPATH=$GOPATH USE_DOCKER=true ./rootfs.sh ${distro}'
|
$ script -fec 'sudo -E GOPATH=$GOPATH USE_DOCKER=true SECCOMP=no ./rootfs.sh ${distro}'
|
||||||
```
|
```
|
||||||
You MUST choose one of `alpine`, `centos`, `clearlinux`, `euleros`, and `fedora` for `${distro}`.
|
You MUST choose one of `alpine`, `centos`, `clearlinux`, `euleros`, and `fedora` for `${distro}`. By default `seccomp` packages are not included in the rootfs image. Set `SECCOMP` to `yes` to include them.
|
||||||
|
|
||||||
> **Note:**
|
> **Note:**
|
||||||
>
|
>
|
||||||
@ -287,10 +287,10 @@ $ (cd /usr/share/kata-containers && sudo ln -sf "$image" kata-containers.img)
|
|||||||
$ export ROOTFS_DIR="${GOPATH}/src/github.com/kata-containers/osbuilder/rootfs-builder/rootfs"
|
$ export ROOTFS_DIR="${GOPATH}/src/github.com/kata-containers/osbuilder/rootfs-builder/rootfs"
|
||||||
$ sudo rm -rf ${ROOTFS_DIR}
|
$ sudo rm -rf ${ROOTFS_DIR}
|
||||||
$ cd $GOPATH/src/github.com/kata-containers/osbuilder/rootfs-builder
|
$ cd $GOPATH/src/github.com/kata-containers/osbuilder/rootfs-builder
|
||||||
$ script -fec 'sudo -E GOPATH=$GOPATH AGENT_INIT=yes USE_DOCKER=true ./rootfs.sh ${distro}'
|
$ script -fec 'sudo -E GOPATH=$GOPATH AGENT_INIT=yes USE_DOCKER=true SECCOMP=no ./rootfs.sh ${distro}'
|
||||||
```
|
```
|
||||||
`AGENT_INIT` controls if the guest image uses kata agent as the guest `init` process. When you create an initrd image,
|
`AGENT_INIT` controls if the guest image uses kata agent as the guest `init` process. When you create an initrd image,
|
||||||
always set `AGENT_INIT` to `yes`.
|
always set `AGENT_INIT` to `yes`. By default `seccomp` packages are not included in the initrd image. Set `SECCOMP` to `yes` to include them.
|
||||||
|
|
||||||
You MUST choose one of `alpine`, `centos`, `clearlinux`, `euleros`, and `fedora` for `${distro}`.
|
You MUST choose one of `alpine`, `centos`, `clearlinux`, `euleros`, and `fedora` for `${distro}`.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user