FB11.1,怎么才能不产生/usr/lib/debug文件夹
今天被FreeBSD11.1一顿神坑,由于系统存储为128M小固态,需要make world/kernel再做精减,以前写了10.0的脚本,但是11.1有好多地方不一样,其中:1、/usr/lib/debug文件夹,130M;
2、/usr/tests文件夹,也是几十兆;
3、没有fastforwarding内核参数了;graph的内核选项有几个也不见了……
好像还有几处报错,没一一记下来。
第1、2没找到解决的办法,官方只写了一句话:
When running low on disk space, there are different options to reduce the size of /boot/kernel/ and /usr/lib/debug/
但是后面仅仅是解决的kernel中的debug,没有说这个debug怎么去掉,编译了好几次仍然还在。
参考这个arm64_build.sh 脚本,改成 amd64 看行不:
https://wiki.freebsd.org/arm64?action=AttachFile&do=get&target=arm64_build.sh 我都是手工安装,只下载base kernel 看了下 这不行吗
To not install the symbol files, make sure the following line exists in /etc/src.conf:
WITHOUT_KERNEL_SYMBOLS=yes
If you want to avoid building debug files altogether, make sure that both of the following are true:
This line does not exist in the kernel configuration file:
makeoptions DEBUG=-g
Do not run config(8) with -g.
再不行就外接硬碟不然就改个东西XD 回复 5# james90404
11.0我试过不行。
11.1还没试过。
恩...大致上找到了
但是为了bsd的神秘感还是不说了
大神肯定找的到
页:
[1]