Skip to content
This repository has been archived by the owner on Jul 16, 2020. It is now read-only.

Commit

Permalink
ciao-cnci-agent: minor fixups
Browse files Browse the repository at this point in the history
Attempting to follow the README and run the script, I bumped into a couple
minor issues:

The image is downloaded by default, so describe how to download the image
and to where.  (Alternatively, could simplify the README by using the
"--download" option.)

Depending on OS specifics, the /dev/nbd0p* might not be created.  Running
'partprobe' is a fairly linux-OS-agnostic way to get them.  Given the
script currently only deals with raw format images, we could also simply do
a loopback mount and not deal with nbd and qemu-nbd, but I'm guessing
qemu-nbd is used to be better ready in the futue to handle qcow format
images in addition to raw?

Signed-off-by: Tim Pepper <[email protected]>
  • Loading branch information
Tim Pepper committed Aug 3, 2016
1 parent fd0ea1d commit 8a95ad8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions networking/ciao-cnci-agent/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,12 @@ the certificates it needs to connect to the ciao-scheduler.
```
cd $GOPATH/src/github.com/01org/ciao/networking/ciao-cnci-agent
go install
3. Download the appropriate version image and run the modification script:
```
3. Update the image
```
./generate_cnci_cloud_image.sh --image <cnci-image>
cd scripts
curl -O https://download.clearlinux.org/demos/ciao/clear-${VERSION}-ciao-networking.img.xz
xz --decompress clear-${VERSION}-ciao-networking.img.xz
./generate_cnci_cloud_image.sh --image clear-${VERSION}-ciao-networking.img
```
This will yield a provisioned image. This can be used as a CNCI VM.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ retry=0
until [ $retry -ge 3 ]
do
sudo udevadm settle
sudo partprobe /dev/nbd0
sudo mount /dev/nbd0p$partition "$tmpdir" && break
let retry=retry+1
echo "Mount failed, retrying $retry"
Expand Down

0 comments on commit 8a95ad8

Please sign in to comment.