Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
donald committed Jan 5, 2023
1 parent 7804f95 commit 67eecb1
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions 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
#}

0 comments on commit 67eecb1

Please sign in to comment.