Skip to content
This repository has been archived by the owner on Dec 8, 2023. It is now read-only.

Commit

Permalink
Merge pull request #213 from dweomer/prepare-v0.4.0
Browse files Browse the repository at this point in the history
Update README and Packer templates to v0.4.0
  • Loading branch information
dweomer authored Oct 10, 2019
2 parents cf033fd + 6b19a2a commit 98d68b5
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ This script will run the same installation as the ISO but is a bit more raw and
```
Usage: ./install.sh [--force-efi] [--debug] [--tty TTY] [--poweroff] [--takeover] [--no-format] [--config https://.../config.yaml] DEVICE ISO_URL
Example: ./install.sh /dev/vda https://github.com/rancher/k3os/releases/download/v0.3.0/k3os.iso
Example: ./install.sh /dev/vda https://github.com/rancher/k3os/releases/download/v0.4.0/k3os.iso
DEVICE must be the disk that will be partitioned (/dev/vda). If you are using --no-format it should be the device of the K3OS_STATE partition (/dev/vda2)
Expand Down Expand Up @@ -158,15 +158,15 @@ and run with the `--takeover` flag. This will install k3OS to the current root
In order for this to work a couple of assumptions are made. First the root (/) is assumed to be a ext4 partition. Also it is assumed that grub2 is installed and looking for the configuration at `/boot/grub/grub.cfg`. When running `--takeover` ensure that you also set `--no-format` and DEVICE must be set to the partition of `/`. Refer to the AWS packer template to see this mode in action, below is any example of how to run a takeover installation.

```
./install.sh --takeover --debug --tty ttyS0 --config /tmp/config.yaml --no-format /dev/vda1 https://github.com/rancher/k3os/releases/download/v0.3.0/k3os.iso
./install.sh --takeover --debug --tty ttyS0 --config /tmp/config.yaml --no-format /dev/vda1 https://github.com/rancher/k3os/releases/download/v0.4.0/k3os.iso
```

### ARM Overlay Installation

If you have a custom ARMv7 or ARM64 device you can easily use an existing bootable ARM image to create an k3OS setup. All you must do is boot the ARM system and then extract `k3os-rootfs-arm.tar.gz` to the root (stripping one path, look at the example below) and then place your cloud-config at `/k3os/system/config.yaml`. For example:

```
curl -sfL https://github.com/rancher/k3os/releases/download/v0.3.0/k3os-rootfs-arm.tar.gz | tar zxvf - --strip-components=1 -C /
curl -sfL https://github.com/rancher/k3os/releases/download/v0.4.0/k3os-rootfs-arm.tar.gz | tar zxvf - --strip-components=1 -C /
cp myconfig.yaml /k3os/system/config.yaml
sync
reboot -f
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ usage()
{
echo "Usage: $PROG [--force-efi] [--debug] [--tty TTY] [--poweroff] [--takeover] [--no-format] [--config https://.../config.yaml] DEVICE ISO_URL"
echo ""
echo "Example: $PROG /dev/vda https://github.com/rancher/k3os/releases/download/v0.3.0/k3os.iso"
echo "Example: $PROG /dev/vda https://github.com/rancher/k3os/releases/download/v0.4.0/k3os.iso"
echo ""
echo "DEVICE must be the disk that will be partitioned (/dev/vda). If you are using --no-format it should be the device of the K3OS_STATE partition (/dev/vda2)"
echo ""
Expand Down
4 changes: 2 additions & 2 deletions package/packer/aws/template-arm64.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"region": "us-east-1",
"k3os_version": "v0.3.0",
"iso_url": "https://github.com/rancher/k3os/releases/download/v0.3.0/k3os-arm64.iso"
"k3os_version": "v0.4.0",
"iso_url": "https://github.com/rancher/k3os/releases/download/v0.4.0/k3os-arm64.iso"
},
"builders": [{
"type": "amazon-ebs",
Expand Down
4 changes: 2 additions & 2 deletions package/packer/aws/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"aws_access_key": "{{env `AWS_ACCESS_KEY_ID`}}",
"aws_secret_key": "{{env `AWS_SECRET_ACCESS_KEY`}}",
"region": "us-east-1",
"k3os_version": "v0.3.0",
"iso_url": "https://github.com/rancher/k3os/releases/download/v0.3.0/k3os-amd64.iso"
"k3os_version": "v0.4.0",
"iso_url": "https://github.com/rancher/k3os/releases/download/v0.4.0/k3os-amd64.iso"
},
"builders": [{
"type": "amazon-ebs",
Expand Down
4 changes: 2 additions & 2 deletions package/packer/gcp/template.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"variables": {
"gcp_project_id": "{{env `GCP_PROJECT_ID`}}",
"region": "us-east1-d",
"k3os_version": "v0.3.0",
"iso_url": "https://github.com/rancher/k3os/releases/download/v0.3.0/k3os-amd64.iso"
"k3os_version": "v0.4.0",
"iso_url": "https://github.com/rancher/k3os/releases/download/v0.4.0/k3os-amd64.iso"
},
"builders": [
{
Expand Down
2 changes: 1 addition & 1 deletion package/packer/vagrant/vagrant.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"variables": {
"password": "rancher",
"version": "v0.3.0",
"version": "v0.4.0",
"checksum": "e3a0b0f22ac492fc76363a0319c733f392c6ce829825f3dc76cd72a45da384ca"
},
"builders": [{
Expand Down

0 comments on commit 98d68b5

Please sign in to comment.