1

I have a problem building a freebsd image with my custom application. I am making an application in php and html that uses some other applications on freebsd. Now I made a release by some commands provided by FreeBSD like make buildworld, make release, ... then I got the files: .iso and .img . Now, when I installed them, the php files that were written in the first system were not found and the /usr/local directory was empty. How can I produce a FreeBSD image with all the files I added and all the ports or packages I downloaded? I was inspired by pfsense which is a fork of FreeBSD.

Foon
  • 6,148
  • 11
  • 40
  • 42
Mathe Eliel
  • 658
  • 2
  • 6
  • 16
  • Tried to clean up language to be clearer and removed chattiness. Original poster needs to provide more details on the commands run etc. for this to be answerable but it sounds like he resolved his issue with support external to SO. – Foon May 07 '16 at 12:16

1 Answers1

0

I haven't tried it myself and the documentation is a bit outdated but this is probably what you are looking for:

https://www.freebsd.org/doc/en/articles/releng/release-build.html

You have probably three choices:

  1. Modify the mentioned script that generates the release.
  2. Distribute the required files separately and install them when installing the base system, as outlined in the Extensibility section of the same document.
  3. Unpack the ISO that you have, modify the .txz files contained in it, add the files, then recreate the .txz archives and the ISO.

You may also try to ask for help on the FreeBSD forum or a mailing list.

Greg
  • 8,230
  • 5
  • 38
  • 53
  • Thank you for your answer. I ask for help on FreeBSD forum and I got an answer. They asked me to create a port thus it can be released. I post the answer I got from FreeBSD experts. – Mathe Eliel May 06 '16 at 17:57
  • I am glad they gave you another solution. I hope it works for you and you will be able to achieve what you want. – Greg May 06 '16 at 19:11