Skip to content

Commit 6cb5d74

Browse files
iavclaude
andcommitted
fix(config): skip check_filesystem_compatibility_on_host for ROOTFS_TYPE=nfs
ROOTFS_TYPE=nfs produces a rootfs tarball via `tar cp ... | gzip` in rootfs-to-image.sh and never mounts NFS on the build host. The NFS client runs on the target's kernel at boot time, so host-side NFS filesystem support is irrelevant. Additionally, the check runs inside the Armbian docker launcher where /lib/modules is empty, causing `modprobe nfs` to fail even when the host kernel has nfs.ko available. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fdef407 commit 6cb5d74

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/functions/configuration/main-config.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,10 @@ function do_main_configuration() {
160160
;;
161161
esac
162162

163-
# Check if the filesystem type is supported by the build host
164-
if [[ $CONFIG_DEFS_ONLY != yes ]]; then # don't waste time if only gathering config defs
163+
# Check if the filesystem type is supported by the build host.
164+
# Skipped for nfs: ROOTFS_TYPE=nfs produces a rootfs tarball;
165+
# host-side filesystem support is irrelevant for the nfs case.
166+
if [[ $CONFIG_DEFS_ONLY != yes && $ROOTFS_TYPE != nfs ]]; then
165167
check_filesystem_compatibility_on_host
166168
fi
167169

0 commit comments

Comments
 (0)