From 67eecb1c0dec4f4ea5a2576d2de7d4372a6b2905 Mon Sep 17 00:00:00 2001 From: Donald Buczek Date: Thu, 5 Jan 2023 17:19:37 +0100 Subject: [PATCH] kernel-440-nfsd-replacement: Add version 1.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 --- kernel-440-nfsd-replacement.be0 | 59 +++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100755 kernel-440-nfsd-replacement.be0 diff --git a/kernel-440-nfsd-replacement.be0 b/kernel-440-nfsd-replacement.be0 new file mode 100755 index 000000000..48596c067 --- /dev/null +++ b/kernel-440-nfsd-replacement.be0 @@ -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 +#}