如何从 OpenBSD 中“完全”删除熔丝支持?

如何从 OpenBSD 中“完全”删除熔丝支持?

如何才能从 OpenBSD 中删除熔丝支持?

需要重新编译内核吗?

或者只是修改配置或删除一些二进制文件?如何?

答案1

内核支持FUSE

# grep FUSE /sys/conf/GENERIC
option          FUSE            # FUSE

需要删除;假设sys.tar.gz已被强加到系统上并应用了所有最新和最好的补丁

# cd /sys/conf
# cp GENERIC NOFUSE
# (echo /FUSE; echo d; echo w; echo q) | ed NOFUSE
4048
option          FUSE            # FUSE
4027
# grep FUSE NOFUSE
# cd /sys/arch/`uname -m`/conf
# cp GENERIC NOFUSE
# grep GENERIC NOFUSE
#       $OpenBSD: GENERIC,v 1.445 2017/08/28 19:32:53 jasper Exp $
include         "../../../conf/GENERIC"
# ed NOFUSE
20842
/\/GENERIC
include         "../../../conf/GENERIC"
s/GENERIC/NOFUSE
include         "../../../conf/NOFUSE"
w
20841
q
# config NOFUSE
...
# cd ../compile/NOFUSE
# make
...
# make install
...
# reboot

诸如config(8)release(8)之类的手册页boot(8)可能值得一看,上面的内容构建了适合系统的MP或内核......SP

相关内容