From 71057b6f891d52f7455855a658acdb10160b8d52 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Mon, 25 Sep 2017 09:07:57 +0100 Subject: [PATCH 1/2] docs: Fix markdown formatting in README Some of the formatting in the README was incorrect (verbatim text when it should have been normal and vice versa). Fixes #32. Signed-off-by: James O. D. Hunt --- README.md | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 2712d03..4193be1 100644 --- a/README.md +++ b/README.md @@ -134,9 +134,7 @@ This section covers using the new resources with `cc-runtime`. 1. Update the runtime configuration for the image ``` $ # (note that this is only an example using default paths). - $ sudo sed -i.bak -e 's!^\(image = ".*"\)!# \1 \ - image = "/usr/share/clear-containers/container.img"!g' \ - /usr/share/defaults/clear-containers/configuration.toml + $ sudo sed -i.bak -e 's!^\(image = ".*"\)!# \1 image = "/usr/share/clear-containers/container.img"!g' /usr/share/defaults/clear-containers/configuration.toml ``` #### Installing the new kernel @@ -144,14 +142,12 @@ This section covers using the new resources with `cc-runtime`. 1. Install the kernel image ``` $ sudo install --owner root --group root --mode 0755 workdir/vmlinuz.container /usr/share/clear-containers/custom-vmlinuz - $ sudo install --owner root --group root --mode 0755 workdir/vmlinux.container /usr/share/clear-containers/custom-vmlinux + $ sudo install --owner root --group root --mode 0755 workdir/vmlinux.container /usr/share/clear-containers/custom-vmlinux ``` 1. Update the runtime configuration for the kernel - ``` - $ sudo sed -i.bak -e 's!^\(kernel = ".*"\)!# \1\nkernel = "/usr/share/clear-containers/custom-vmlinuz"!g' \ - /usr/share/defaults/clear-containers/configuration.toml + $ sudo sed -i.bak -e 's!^\(kernel = ".*"\)!# \1\nkernel = "/usr/share/clear-containers/custom-vmlinuz"!g' /usr/share/defaults/clear-containers/configuration.toml ``` ### Clear Containers 2.x @@ -159,14 +155,12 @@ This section covers using the new resources with `cc-runtime`. This section covers using the new resources with `cc-oci-runtime`. 1. Copy the defaults file: - ``` $ sudo mkdir -p /etc/cc-oci-runtime $ sudo cp /usr/share/defaults/cc-oci-runtime/vm.json /etc/cc-oci-runtime/vm.json ``` 1. Modify the paths for your new kernel and image: - ``` { "vm": { From 534552c69779f5f52128f228bc6eebf414107ad2 Mon Sep 17 00:00:00 2001 From: "James O. D. Hunt" Date: Mon, 25 Sep 2017 13:43:59 +0100 Subject: [PATCH 2/2] docs: Fix links to "Environment Variables" section All the links to the "Environment Variables" section were using the wrong syntax. Signed-off-by: James O. D. Hunt --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4193be1..983210d 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ This repository contains scripts to create a custom The scripts in this repository are called by running `make(1)` specifying particular targets. The scripts use a work directory for storing all files. By deafult this will be created automatically as `./workdir` however this can be -changed by setting the `WORKDIR` environment variable. See [Environment Variables](#Environment Variables). +changed by setting the `WORKDIR` environment variable. See [Environment Variables](#environment-variables). ## Building a guest image @@ -65,7 +65,7 @@ The `image` target will not create or populate the `workdir/rootfs` directory so it is necessary to [build a rootfs](#build-a-rootfs) first. Use the `IMG_SIZE` environment variable to change the size of the image if -desired. See [Environment Variables](#Environment Variables). +desired. See [Environment Variables](#environment-variables). ``` $ sudo -E make image @@ -79,7 +79,7 @@ populated with any other source. Packages are installed inside the generated image. You can install extra packages using the environment variable `EXTRA_PKGS`. -See [Environment Variables](#Environment Variables). +See [Environment Variables](#environment-variables). - [systemd] - [hyperstart]