Author: asomers
Date: Fri Apr 26 20:15:47 2019
New Revision: 346765
URL: https://svnweb.freebsd.org/changeset/base/346765

Log:
  Don't symlink fusefs.ko to fuse.ko on PPC
  
  Some PPC systems (PowerNV) use msdosfs for /boot, which can't handle either
  symlinks or hardlinks. So on PPC, copy the module instead. This change fixes
  installkernel on such systems after r345350.
  
  Reported by:  Brandon Bergren <git_bdragon.rtk0.net>
  Reviewed by:  jhibbits, rgrimes
  MFC after:    2 weeks
  MFC-With:     345350, 346441
  Sponsored by: The FreeBSD Foundation
  Differential Revision:        https://reviews.freebsd.org/D19993

Modified:
  head/sys/modules/fusefs/Makefile

Modified: head/sys/modules/fusefs/Makefile
==============================================================================
--- head/sys/modules/fusefs/Makefile    Fri Apr 26 19:54:46 2019        
(r346764)
+++ head/sys/modules/fusefs/Makefile    Fri Apr 26 20:15:47 2019        
(r346765)
@@ -8,6 +8,22 @@ SRCS=  vnode_if.h \
        fuse_vfsops.c fuse_vnops.c fuse_internal.c fuse_main.c
 
 # Symlink for backwards compatibility with systems installed at 12.0 or older
+.if ${MACHINE_CPUARCH} != "powerpc"
 SYMLINKS=      ${KMOD}.ko ${KMODDIR}/fuse.ko
+.else
+# Some PPC systems use msdosfs for /boot, which can't handle links or symlinks
+afterinstall: alias alias_debug
+alias: .PHONY
+       ${INSTALL} -T release -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
+           ${_INSTALLFLAGS} ${PROG} ${DESTDIR}${KMODDIR}/fuse.ko
+.if defined(DEBUG_FLAGS) && !defined(INSTALL_NODEBUG) && 
"${MK_KERNEL_SYMBOLS}" != "no"
+alias_debug: .PHONY
+       ${INSTALL} -T debug -o ${KMODOWN} -g ${KMODGRP} -m ${KMODMODE} \
+           ${_INSTALLFLAGS} ${PROG}.debug \
+           ${DESTDIR}${KERN_DEBUGDIR}${KMODDIR}/fuse.ko
+.else
+alias_debug: .PHONY
+.endif
+.endif
 
 .include <bsd.kmod.mk>
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to