diff --git a/Makefile b/Makefile index f1b06ad1..95b7205a 100644 --- a/Makefile +++ b/Makefile @@ -48,6 +48,7 @@ TARGETS = \ i915-ucode \ intel-ucode \ iscsi-tools \ + nfsd \ nut-client \ nvidia-container-toolkit \ nvidia-fabricmanager \ diff --git a/storage/nfsd/manifest.yaml b/storage/nfsd/manifest.yaml new file mode 100644 index 00000000..b3d1c33c --- /dev/null +++ b/storage/nfsd/manifest.yaml @@ -0,0 +1,10 @@ +version: v1alpha1 +metadata: + name: nfsd + version: "$VERSION" + author: Subhash Chandra + description: | + This system extension provides kernel module driver for NFSD built against a specific Talos version. + compatibility: + talos: + version: ">= v1.2.0" diff --git a/storage/nfsd/pkg.yaml b/storage/nfsd/pkg.yaml new file mode 100644 index 00000000..7c95b266 --- /dev/null +++ b/storage/nfsd/pkg.yaml @@ -0,0 +1,22 @@ +name: nfsd +variant: scratch +shell: /toolchain/bin/bash +dependencies: + - stage: base +# The pkgs version for a particular release of Talos as defined in +# https://github.com/siderolabs/talos/blob//pkg/machinery/gendata/data/pkgs + - image: "{{ .PKGS_PREFIX }}/nfsd-pkg:{{ .BUILD_ARG_PKGS }}" +steps: + - prepare: + - | + sed -i 's#$VERSION#{{ .VERSION }}#' /pkg/manifest.yaml + - install: + - | + mkdir -p /rootfs/lib/modules + + cp -R /lib/modules/* /rootfs/lib/modules +finalize: + - from: /rootfs + to: /rootfs + - from: /pkg/manifest.yaml + to: / diff --git a/storage/nfsd/vars.yaml b/storage/nfsd/vars.yaml new file mode 100644 index 00000000..df6cc8d5 --- /dev/null +++ b/storage/nfsd/vars.yaml @@ -0,0 +1,2 @@ +# the first part is the driver version and the second the talos version for which the module is built against +VERSION: "{{ .BUILD_ARG_TAG }}"