build from alternative src?

Started by moonmoonbird, October 22, 2020, 05:13:55 AM

Previous topic - Next topic
hi, i want to build dvd image from source and replace /usr/src with freebsd12.1, is that possible?
if possible, just replace /usr/src with freebsd src or something else? and what is the command to rebuild from replaced source ? thanks in advance!

What is your intention? I think you can replace the content of src but maybe you have to remove hardendedbsd options in /usr/tools configs. Just a guess ...

Thanks for your reply, i have tried replace src with freebsd 12.1 and successfully compiled to iso file and installed.
the command i used is "make prefetch-packages,base,kernel dvd  VERSION=20.7", so how to prove that the system is replaced successfully?

as you metioned, removing hardendbsd is also what exactly i need.  At very beginning, I installed some packages and self developed programs, but all have been flushed after reboot, and some directories are read only, so some packages cant be installed, and in the freebsd12.1, i can execute "pkg install linux_base-c7", and successful installed, but in the opnsense or custom builded system, i cant install it. so maybe it is related to hardendbsd.
can you point out which option is to remove hardendbsd and how, thanks you very much.

No I can't, since I'm just guessing. You have to grep /usr/tools for HBSD and look at the scripts.

Alright,still thank you for your suggestions, that is an direction, i will try you method.

i just build another, with fully replaced /usr/src with freebsd, generate an iso file, but this iso can not boot up,
it said : cant load 'kernel' in brief.
so what is the  problem?