115b5
![]() |
|
|
|
|
|||||||
| Installing & Upgrading Installing and upgrading FreeBSD. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi
I'm trying to create my own FreeBSD-update-server (http://www.freebsd.org/cgi/cvsweb.cg...update-server/) so that I can automatically update all the machines on my network to the latest customized version of FreeBSD. The custom version is simply a minimal install, a couple of ports and a custom (reduced) kernel. My problem is creating an ISO of this customized version. I've searched the forums, read the handbook and some other guides but all fail to explain how to REALLY do what I need to do. (or i missed it somehow) The machine I'm using as the update server (and for compiling everything) already has a minimal install + custom kernel. Just need to know how to convert all this to an ISO so that I can easily use it on other machines (through the update system). If I'm correct, this whole mechanism will allow me to update/upgrade any machine on the network simply by running freebsd-update on the target machine. If you think I'm going in the wrong direction and that there's a better way to achieve this, I'm all ears! If you need more info I will also provide it. Hope someone can help! Thanks in advance! |
|
#2
|
||||
|
||||
|
Have a look at the scripts and Makefile in /usr/src/release/. The "make release" there will basically create a bootable install CD.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
| The Following User Says Thank You to SirDice For This Useful Post: | ||
r00t (October 27th, 2011) | ||
|
#3
|
||||
|
||||
|
I don't know about freebsd-update specifically, but release(7) should help.
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Administrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
| The Following User Says Thank You to DutchDaemon For This Useful Post: | ||
r00t (October 27th, 2011) | ||
|
#4
|
|||
|
|||
|
The only way to do this is with using the facility of "make release," as aforementioned.
What you are doing is something I've been doing for some time now, and have gained some expertise with it. Everything NEEDS to be in the iso. As freebsd-update-server code will download the iso and do all patching and compiling from that iso. I wrote up some documentation that was accepted into the Releng Document that may help. http://www.freebsd.org/doc/en_US.ISO...ase-build.html I added section specifics for using a custom kernel in 3.4.1 As far as the update server, you can look at this documentation I wrote: http://people.freebsd.org/~manolis/p...update-server/ http://www.experts-exchange.com/arti...te-Server.html You will need to make a couple of modifications to the freebsd-update-server software. The subroutines in build.subr regarding documentation and buildworld will need to be tuned. I have spoken with Colin about a bug in the buildworld routine that won't build on customized kernels, and it is something he will eventually look into. I have modified mine to work on custom kernels, but the real fix is to find out why it is ignoring it. Above all, make sure your ISO actually works before building update code against it. Last edited by jgh@; March 11th, 2010 at 05:24. Reason: forgot to mention some stuff |
| The Following User Says Thank You to jgh@ For This Useful Post: | ||
r00t (October 27th, 2011) | ||
|
#5
|
|||
|
|||
|
If you make a release with additional ports or other programs, will they be automatically installed by the iso that is generated? Can you also get freebsd-update-server to update both the base system and the ports and other software?
|
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
|||
|
|||
|
Quote:
http://www.freebsd.org/doc/en_US.ISO...ver/index.html |
| The Following User Says Thank You to jgh@ For This Useful Post: | ||
r00t (October 27th, 2011) | ||
|
#8
|
||||
|
||||
|
Any further discussion here: http://forums.freebsd.org/showthread.php?t=22016
__________________
FreeBSD Forums: Information for New Members | FreeBSD Forums Rules FreeBSD Resources: The FreeBSD Handbook | Manuals | FAQ | Wiki Before you post: How to ask questions the smart way If you must know .. So, what does an Administrator/Moderator do? ---> Do not PM me with FreeBSD questions. I do not work here. <--- |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| freebsd-update with custom kernel | vso1 | Installing & Upgrading | 5 | August 12th, 2010 14:48 |
| Custom freebsd-update-server with Ports | bsd10 | Installing & Upgrading | 2 | August 11th, 2010 16:50 |
| creating image from installed FreeBSD | starsoheil | FreeBSD Development | 8 | March 8th, 2010 12:48 |
| Using freebsd-update with custom module | pnosbsd | Installing & Upgrading | 0 | October 1st, 2009 19:59 |
| Custom FreeBSD iso CD | Stamps | Installing & Upgrading | 3 | June 2nd, 2009 02:36 |