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
This commit is contained in:
parent
7763842174
commit
e430d1ed78
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user