Solved FreeBSD ISO bootable?

Hello.

Some news from the front...

Finally (!), after 8 h 30 (!!), the compilation was done.
Need 2 h more (!!!), to make the ISO ( 30 m to finish ISO + 1h30 to wait for 0 byte to 100 megas).

And you know what... it boots ;-)

World and kernel build time can be saved by using the -DNO_CLEAN option.
That will be extremely useful !
Code:
 -DNO_CLEAN
, ok but option of what?
I use that command to build the iso =>
sudo make iso CUSTOM=1 BUILDWORLD=1 BUILDKERNEL=1

This because the iso already done was only a test, iI have to create others.

By the way, does it exist a utility to do the next step:
=> transfer the system from the ISO to the new system. (like "Install" in other distro) ?

Thanks.

Fre;D
 
make -j4 -DNO_CLEAN buildworld

CUSTOM=1 is an mfsBSD option that means "I have already built my own custom world and kernel".
 
As I read it, CUSTOM=1 means "I already built world and kernel on my own, use the existing ones instead of building new ones."
 
As I read it, CUSTOM=1 means "I already built world and kernel on my own, use the existing ones instead of building new ones."
Ok, this does the trick =>
sudo make clean
sudo make iso CUSTOM=1

Now I note that something was wrong in the config of the new kernel.
Huh, 9 h to wait for compil ... it will be for a other day...

So I re-try to use the kernel from the iso provided by mfsBSD =>
mfsbsd-se-10.1-RELEASE-amd64.iso

With 1 giga added in /customfiles

And, in fact, it works too ;-) (only have to be patient while booting, it takes time...)

OK, let's go ;-) =>

Here how to make your own bootable FreeBSD iso.

1) - Download msfBSD from https://github.com/mmatuska/mfsbsd
2) - Download the iso-kernel http://mfsbsd.vx.sk/files/iso/10/amd64/mfsbsd-se-10.1-RELEASE-amd64.iso
3) - Mount that iso.
4) - Copy /usr/local/sbin/pkg-static into /mfsbsd/tools/
5) - Edit /msfbsd/Makefile => change
Code:
MFSROOT_MAXSIZE?=64m
to (here size of a DVD)
Code:
MFSROOT_MAXSIZE?=4700m
6) - In /msfbsd/conf/ => change name of files deleting .sample ending and make modifications to suit your needs.
7) - If you want to install packages at boot time: create directory /msfbsd/packages and add the .tbz packages.
8) - Your files ! => Create /msfbsd/customfiles directory and add all what you want.
9) - Create your iso with:
cd /msfbsd
make iso BASE=/media/MFSBSD/10.1-RELEASE-amd64
10) It is done ;-). The booting may take a while, depend of the size of the iso.

Many, many thanks to Martin Matuška for msfBSD and to Wblock for his help.

Next battle : How to transfer the boot system of your iso to a new device... (help very appreciated).

Fre;D
 
It should be possible, the Vagrant images (which can also be build using release(7)) for example have a user called vagrant. But I'm unable to find where exactly this is done.
 
Back
Top