imx-image-*: Remove nfs-server from rootfs

The fix for YOCIMX-1736 and YOCIMX-1737 did not solve the root problem of installing an NFS server in the rootfs when the kernel didn't support it.

Signed-off-by: Valentin Jec <valentin.jec@nxp.com>
This commit is contained in:
Valentin Jec 2023-10-30 13:55:33 +02:00 committed by Tom Hochstein
parent d12d2af0d6
commit ec71133501
3 changed files with 2 additions and 17 deletions

View File

@ -1,15 +0,0 @@
do_install:append () {
# If using systemd and NFSD is not configured in kernel then remove
# the unnecessary files to avoid the failure massages at boot.
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
if [ "$(grep "CONFIG_NFSD" ${STAGING_KERNEL_BUILDDIR}/.config)" != "CONFIG_NFSD=m" ]; then
if [ -f "${D}${sysconfdir}/modules-load.d/nfsd.conf" ]; then
rm ${D}${sysconfdir}/modules-load.d/nfsd.conf
fi
if [ "$(grep "CONFIG_NFSD" ${STAGING_KERNEL_BUILDDIR}/.config)" != "CONFIG_NFSD=y" ]; then
rm -f ${D}${systemd_unitdir}/system/sysinit.target.wants/proc-fs-nfsd.mount
rm -f ${D}${systemd_unitdir}/system/proc-fs-nfsd.mount
fi
fi
fi
}

View File

@ -11,7 +11,7 @@ IMAGE_FEATURES += " \
tools-sdk \
package-management \
splash \
nfs-server \
nfs-client \
tools-debug \
ssh-server-openssh \
hwcodecs \

View File

@ -21,7 +21,7 @@ IMAGE_FEATURES += " \
tools-sdk \
package-management \
splash \
nfs-server \
nfs-client \
tools-debug \
ssh-server-openssh \
tools-testapps \