Skip to content

Commit 357b561

Browse files
buroafrezbo
authored andcommitted
feat: add nfsrahead extension
This builds nfs-utils which provides a particular utility called nfsrahead. It also creates the necessary udev rule to take effect on nfs mounts. man7.org/linux/man-pages/man5/nfsrahead.5.html Signed-off-by: Steven Kreitzer <[email protected]> Signed-off-by: Noel Georgi <[email protected]>
1 parent 97ec587 commit 357b561

File tree

10 files changed

+998
-1
lines changed

10 files changed

+998
-1
lines changed

.kres.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ spec:
3636
- nebula
3737
- newt
3838
- nfsd
39+
- nfsrahead
3940
- nut-client
4041
- nvidia-container-toolkit-lts
4142
- nvidia-container-toolkit-production

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT.
22
#
3-
# Generated on 2025-07-09T12:23:21Z by kres 1700045.
3+
# Generated on 2025-07-10T15:57:51Z by kres 1700045.
44

55
# common variables
66

@@ -91,6 +91,7 @@ TARGETS += metal-agent
9191
TARGETS += nebula
9292
TARGETS += newt
9393
TARGETS += nfsd
94+
TARGETS += nfsrahead
9495
TARGETS += nut-client
9596
TARGETS += nvidia-container-toolkit-lts
9697
TARGETS += nvidia-container-toolkit-production

storage/nfsrahead/files/nfs.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[nfsrahead]
2+
default=128
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: libevent
2+
variant: scratch
3+
shell: /bin/bash
4+
dependencies:
5+
- stage: base
6+
steps:
7+
- sources:
8+
- url: https://github.com/libevent/libevent/releases/download/release-{{ .LIBEVENT_VERSION }}-stable/libevent-{{ .LIBEVENT_VERSION }}-stable.tar.gz
9+
destination: libevent.tar.gz
10+
sha256: {{ .LIBEVENT_SHA256 }}
11+
sha512: {{ .LIBEVENT_SHA512 }}
12+
prepare:
13+
- |
14+
tar -xf libevent.tar.gz --strip-components=1
15+
mkdir build
16+
cd build
17+
18+
../configure \
19+
--prefix=/usr/local
20+
build:
21+
- |
22+
cd build
23+
make -j $(nproc)
24+
install:
25+
- |
26+
cd build
27+
make DESTDIR=/rootfs install
28+
# we only need the libs and headers, remove everything else
29+
find /rootfs/usr/local/ -type d \( -name bin -o -name sbin -o -name share \) -prune -exec rm -rf {} \;
30+
finalize:
31+
- from: /rootfs
32+
to: /rootfs

storage/nfsrahead/manifest.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: v1alpha1
2+
metadata:
3+
name: nfsrahead
4+
version: "$VERSION"
5+
author: Steve Kreitzer
6+
description: |
7+
This system extension provides nfsrahead, a tool to configure the readahead for NFS mounts.
8+
compatibility:
9+
talos:
10+
version: ">= v1.2.0"

0 commit comments

Comments
 (0)