Skip to content

kernel-440-nfsd-replacement: Add version 1.0 #2820

Merged
merged 1 commit into from
Jan 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions kernel-440-nfsd-replacement.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
#!/usr/bin/env beesh

# BEE_VERSION kernel-440-nfsd-replacement-1.0-0

# This package installs an nfsd kernel module for the Linux 5.15.77-440 kernel,
# which has a fix for the 'chgrp' problem with sec=mariux nfs mounts.
#
# The nfsd module can be reloaded without a system reboot:
#
# systemctl stop nfsd
# systemctl stop proc-fs-nfsd.mount
# rmmod nfsd
# systemctl start proc-fs-nfsd.mount
# systemctl start nfsd
#
# The nfsd.ko file has been produced by:
#
# cd /scratch/local
# tar xf /src/mariux/beeroot/build-archives/linux-5.15.77-440.x86_64.beebuild.tar.bz2
# cd linux-5.15.77-440.x86_64/build
# patch -p1 < /src/mariux/patches/nfsd-Do-no-try-to-us-idmapd-for-sec-mariux.patch
# make
#
# This package is ugly in the sense that it overwrites nfsd.ko from the
# linux-5.15.77-440 package. But its a workaround which will become obsolete
# with system booting to later kernel versions.

SRCURL[0]="https://beehive.molgen.mpg.de/3b6dda7e31957725c92e220dfb5ea7f1/nfsd.ko"

# PATCHURL+=()

# build_in_sourcedir

# sourcesubdir_append src

mee_extract() {
cp $1 $S/
}

#mee_patch() {
# bee_patch "${@}"
#}

mee_configure() {
true
}

mee_build() {
true
}

mee_install() {
mkdir -p $D/lib/modules/5.15.77.mx64.440/kernel/fs/nfsd
cp $S/nfsd.ko $D/lib/modules/5.15.77.mx64.440/kernel/fs/nfsd/nfsd.ko
}

#mee_install_post() {
# exit
#}