mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-12 04:51:35 +01:00
docs: minor fixes for creating kernel modules
Minor fixes for command and examples in the new kernel-module documentation. Signed-off-by: Michael Robbins <michael+github@dalmura.com.au> Signed-off-by: Noel Georgi <git@frezbo.dev>
This commit is contained in:
parent
cc14c4a25d
commit
c948d7617d
@ -207,7 +207,7 @@ We will build and use [imager]({{< relref "../talos-guides/install/boot-assets#i
|
|||||||
Clone the Talos repo.
|
Clone the Talos repo.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/siderolabs/extensions
|
git clone https://github.com/siderolabs/talos
|
||||||
cd talos
|
cd talos
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -230,10 +230,10 @@ Create a installer image from your extension and the imager you just created wit
|
|||||||
make image-installer \
|
make image-installer \
|
||||||
REGISTRY=127.0.0.1:5005 \
|
REGISTRY=127.0.0.1:5005 \
|
||||||
IMAGER_ARGS="--base-installer-image=${IMAGER_IMAGE} \
|
IMAGER_ARGS="--base-installer-image=${IMAGER_IMAGE} \
|
||||||
--system-extensions-image=${EXTENSION_IMAGE}"
|
--system-extension-image=${EXTENSION_IMAGE}"
|
||||||
```
|
```
|
||||||
|
|
||||||
We'll have a new container image tar file in the _out/ folder of our repository.
|
We'll have a new container image tar file in the `_out/` folder of our repository.
|
||||||
Load and push the container image to a registry with [crane](https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane.md).
|
Load and push the container image to a registry with [crane](https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane.md).
|
||||||
Make sure you replace `$REGISTRY`, `$USER`, and `$TAG` with the values you want.
|
Make sure you replace `$REGISTRY`, `$USER`, and `$TAG` with the values you want.
|
||||||
|
|
||||||
@ -241,6 +241,16 @@ Make sure you replace `$REGISTRY`, `$USER`, and `$TAG` with the values you want.
|
|||||||
crane push _out/installer-amd64.tar $REGISTRY/$USER/installer:$TAG
|
crane push _out/installer-amd64.tar $REGISTRY/$USER/installer:$TAG
|
||||||
```
|
```
|
||||||
|
|
||||||
|
And if you don't have `crane`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker load -i _out/installer-amd64.tar
|
||||||
|
# note down sha256 or the image tag output from above command
|
||||||
|
|
||||||
|
docker tag $SHA256_OR_IMAGE_TAG $REGISTRY/$USER/installer:$TAG
|
||||||
|
docker push $REGISTRY/$USER/installer:$TAG
|
||||||
|
```
|
||||||
|
|
||||||
## Test the installer with fresh install
|
## Test the installer with fresh install
|
||||||
|
|
||||||
Now you can boot a machine from generic Talos installation media.
|
Now you can boot a machine from generic Talos installation media.
|
||||||
|
|||||||
@ -207,7 +207,7 @@ We will build and use [imager]({{< relref "../talos-guides/install/boot-assets#i
|
|||||||
Clone the Talos repo.
|
Clone the Talos repo.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone https://github.com/siderolabs/extensions
|
git clone https://github.com/siderolabs/talos
|
||||||
cd talos
|
cd talos
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -230,10 +230,10 @@ Create a installer image from your extension and the imager you just created wit
|
|||||||
make image-installer \
|
make image-installer \
|
||||||
REGISTRY=127.0.0.1:5005 \
|
REGISTRY=127.0.0.1:5005 \
|
||||||
IMAGER_ARGS="--base-installer-image=${IMAGER_IMAGE} \
|
IMAGER_ARGS="--base-installer-image=${IMAGER_IMAGE} \
|
||||||
--system-extensions-image=${EXTENSION_IMAGE}"
|
--system-extension-image=${EXTENSION_IMAGE}"
|
||||||
```
|
```
|
||||||
|
|
||||||
We'll have a new container image tar file in the _out/ folder of our repository.
|
We'll have a new container image tar file in the `_out/` folder of our repository.
|
||||||
Load and push the container image to a registry with [crane](https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane.md).
|
Load and push the container image to a registry with [crane](https://github.com/google/go-containerregistry/blob/main/cmd/crane/doc/crane.md).
|
||||||
Make sure you replace `$REGISTRY`, `$USER`, and `$TAG` with the values you want.
|
Make sure you replace `$REGISTRY`, `$USER`, and `$TAG` with the values you want.
|
||||||
|
|
||||||
@ -241,6 +241,16 @@ Make sure you replace `$REGISTRY`, `$USER`, and `$TAG` with the values you want.
|
|||||||
crane push _out/installer-amd64.tar $REGISTRY/$USER/installer:$TAG
|
crane push _out/installer-amd64.tar $REGISTRY/$USER/installer:$TAG
|
||||||
```
|
```
|
||||||
|
|
||||||
|
And if you don't have `crane`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker load -i _out/installer-amd64.tar
|
||||||
|
# note down sha256 or the image tag output from above command
|
||||||
|
|
||||||
|
docker tag $SHA256_OR_IMAGE_TAG $REGISTRY/$USER/installer:$TAG
|
||||||
|
docker push $REGISTRY/$USER/installer:$TAG
|
||||||
|
```
|
||||||
|
|
||||||
## Test the installer with fresh install
|
## Test the installer with fresh install
|
||||||
|
|
||||||
Now you can boot a machine from generic Talos installation media.
|
Now you can boot a machine from generic Talos installation media.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user