1114c How to create bootable iso to install custom FreeBSD build? - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old April 23rd, 2011, 19:19
rlorentz rlorentz is offline
Junior Member
 
Join Date: Apr 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default How to create bootable iso to install custom FreeBSD build?

Here's my hardware situation:

(Remote) Box foo, running 8.2 -RELEASE FreeBSD (running some server daemons and such).
(Local) OS X host OS, hoping to run FreeBSD 9.0 -CURRENT within VMware Fusion, currently running nothing.

I've got -CURRENT sources checked out to 'foo' and am building the world and kernel there. I'm hitting some snags but helpful folks have got that sorted out it seems. I've built with DESTDIR=/FreeBSD-CURRENT/build. It *seems* that I'm installing to /FreeBSD-CURRENT/build but also /usr/obj??? I'm unclear on this.

To be clear, this is what I'm doing:

Code:
mv /usr/obj /usr/obj.old ; mkdir /usr/obj
make buildworld DESTDIR=/FreeBSD-CURRENT/build TARGET=amd64 TARGET_ARCH=amd64 && make buildkernel DESTDIR=/FreeBSD-CURRENT/build TARGET=amd64 
TARGET_ARCH=amd64 && make installworld DESTDIR=/FreeBSD-CURRENT/build TARGET=amd64 TARGET_ARCH=amd64 && make installkernel DESTDIR=/FreeBSD-
CURRENT/build TARGET=amd64 TARGET_ARCH=amd64 && make distribution DESTDIR=/FreeBSD-CURRENT/build TARGET=amd64 TARGET_ARCH=amd64
I want to ideally create, on 'foo', my_bootable_freebsd_current.iso that I can mount with my VM and completely install with. I can't find anything on the net about doing this, but it's obviously possible, since that's how FreeBSD releases are distributed. How do I do this? If this is going to be a hassle, what is better to do? Is there a smart way to create an iso of the files I care about, boot up with an older 9.0 live CD, and then install from the iso I've made? Would I be best off to put up these built files on my OS X machine as an NFS export - if so, exactly what files do I care about and how do I do this? I'm quite flexible but just don't know how to achieve it

My next issue is what happens when I do a 'svn update' and see that some commits have been made to FreeBSD -CURRENT? Ok, I get the new files, now what? Should I now use my -CURRENT VM and check out the sources and build on there? Given my above codeblock, what would that become exactly in order to upgrade in-place on my -CURRENT VM?

Thanks,

Robert

Last edited by DutchDaemon; April 23rd, 2011 at 19:37. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old April 23rd, 2011, 19:40
gkontos's Avatar
gkontos gkontos is offline
Senior Member
 
Join Date: Dec 2009
Location: Polidendri, GR
Posts: 1,298
Thanks: 44
Thanked 230 Times in 172 Posts
Default

/usr/src/UPDATING
Quote:
20110314:
As part of the replacement of sysinstall, the process of building
release media has changed significantly. For details, please re-read
release(7), which has been updated to reflect the new build process.
From release(7)
Quote:
EXAMPLES
The following sequence of commands can be used to build a ``-CURRENT
snapshot'':

Code:
           cd /usr
           svn co svn://svn.freebsd.org/base/head src
           cd src
           make buildworld
           cd release
           make release
           make install DESTDIR=/var/freebsd-snapshot
After running these commands, all produced distribution files (tarballs
for FTP, CD-ROM images, etc.) are available in the /var/freebsd-snapshot
In any case you will need to do that from a working 9-Current and not from 8.2-Release.
Hope that helps.
__________________
Powered by BareBSD
Reply With Quote
  #3  
Old April 23rd, 2011, 19:55
rlorentz rlorentz is offline
Junior Member
 
Join Date: Apr 2011
Posts: 8
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by gkontos View Post
/usr/src/UPDATING

From release(7)


In any case you will need to do that from a working 9-Current and not from 8.2-Release.
Hope that helps.
That's great that it can automatically build all those images. That'll help once I need to update I guess (will it?) But how does that apply to me when getting started
Reply With Quote
  #4  
Old April 23rd, 2011, 21:17
gkontos's Avatar
gkontos gkontos is offline
Senior Member
 
Join Date: Dec 2009
Location: Polidendri, GR
Posts: 1,298
Thanks: 44
Thanked 230 Times in 172 Posts
Default

I thought that you want to make a 9-Current snapshot (custom release). If I am not mistaken this can not be done from a 8.2-Release.
__________________
Powered by BareBSD

Last edited by DutchDaemon; April 23rd, 2011 at 21:49.
Reply With Quote
  #5  
Old June 3rd, 2011, 22:15
stewe stewe is offline
Junior Member
 
Join Date: Jul 2009
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by gkontos View Post
I thought that you want to make a 9-Current snapshot (custom release). If I am not mistaken this can not be done from a 8.2-Release.
Why not?

Last edited by DutchDaemon; June 3rd, 2011 at 22:23.
Reply With Quote
  #6  
Old June 3rd, 2011, 23:09
gkontos's Avatar
gkontos gkontos is offline
Senior Member
 
Join Date: Dec 2009
Location: Polidendri, GR
Posts: 1,298
Thanks: 44
Thanked 230 Times in 172 Posts
Default

Quote:
Originally Posted by stewe View Post
Why not?
Because you have to be running 9-Current
__________________
Powered by BareBSD
Reply With Quote
  #7  
Old June 5th, 2011, 07:49
Terry_Kennedy's Avatar
Terry_Kennedy Terry_Kennedy is offline
Member
 
Join Date: Apr 2010
Location: New York City
Posts: 421
Thanks: 5
Thanked 77 Times in 68 Posts
Default

Quote:
Originally Posted by rlorentz View Post
I want to ideally create, on 'foo', my_bootable_freebsd_current.iso that I can mount with my VM and completely install with. I can't find anything on the net about doing this, but it's obviously possible, since that's how FreeBSD releases are distributed. How do I do this? If this is going to be a hassle, what is better to do? Is there a smart way to create an iso of the files I care about, boot up with an older 9.0 live CD, and then install from the iso I've made? Would I be best off to put up these built files on my OS X machine as an NFS export - if so, exactly what files do I care about and how do I do this? I'm quite flexible but just don't know how to achieve it.
Maybe I'm missing something, but why not just download a CURRENT snapshot from ftp://ftp.freebsd.org/pub/FreeBSD/snapshots, install from that, and then use whatever method you prefer to update your source tree and rebuild kernel + world? Normally a custom install disc would be used if you wanted to install to multiple systems and either needed a non-standard kernel or wanted to deploy a specific set of software not provided by the standard sysinstall options.
Reply With Quote
  #8  
Old April 23rd, 2012, 07:36
linuxunix linuxunix is offline
Junior Member
 
Join Date: Nov 2010
Posts: 73
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Guys,

I am following http://wiki.idefix.fechner.net/index...D-Build_Own_CD for building a custom FreeBSD 9.0 Final Release for including custom-mfi driver. Will that link work? Please suggest.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: create custom FreeBSD usb bootable flash graudeejs Howtos & FAQs (Moderated) 17 August 11th, 2010 11:17
Announcing: FreeBSD Custom Build ISO available manolis@ Installing & Upgrading 22 November 29th, 2009 21:52
Create Two Bootable FreeBSD on a single HDD iic2 Howtos & FAQs (Moderated) 8 August 10th, 2009 06:35
[Solved] Create install ISO of FreeBSD 7 Stable build dburkland Installing & Upgrading 9 June 18th, 2009 17:39
Announcing: FreeBSD Custom Build ISO available manolis@ News & Announcements 0 May 14th, 2009 22:02


All times are GMT +1. The time now is 22:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0