OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: moonmoonbird on October 22, 2020, 05:13:55 am

Title: build from alternative src?
Post by: moonmoonbird on October 22, 2020, 05:13:55 am
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!
Title: Re: build from alternative src?
Post by: mimugmail on October 22, 2020, 07:29:48 am
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 ...
Title: Re: build from alternative src?
Post by: moonmoonbird on October 22, 2020, 11:12:05 am
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.
Title: Re: build from alternative src?
Post by: mimugmail on October 22, 2020, 12:12:24 pm
No I can't, since I'm just guessing. You have to grep /usr/tools for HBSD and look at the scripts.
Title: Re: build from alternative src?
Post by: moonmoonbird on October 22, 2020, 12:39:12 pm
Alright,still thank you for your suggestions, that is an direction, i will try you method.
Title: Re: build from alternative src?
Post by: moonmoonbird on October 22, 2020, 12:57:45 pm
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?