Custom FreeBSD usb memstick

Devin Teske devin.teske at fisglobal.com
Fri Nov 9 00:06:20 UTC 2012


Slowly working my way to HEAD. 9.0-R is the latest I've done (and still waiting patiently for 9.1-R).

Druid is unique in that you can create a custom USB memstick that also can be burned to CD or DVD (with zero modifications).

When getting started, keep in mind that you can do these steps on Mac OS X, Linux, Cygwin, and (uh) FreeBSD :)

1. Find/Browse the code here…

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druidbsd/

2. Get the code…

In Tarball form (22.6MB):

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druidbsd/?view=tar

or Instructions on how to download with CVS:

http://sourceforge.net/projects/druidbsd/develop

NOTE: When logging in anonymously, simply press ENTER when prompted for a password
NOTE: Use a modulename of druidbsd/druidbsd when checking out the code
NOTE: Downloaded module measures about 30MB in size

3. Execute the following:

cd druidbsd
./configure

NOTE: If you went the CVS route, the first command is instead: cd druidbsd/druidbsd

4. Dependency checks:

In the output of "configure" from step 3 above (which is rather small), make sure no commands have been mapped "/bin/false" (except for "false" itself, naturally).

Basically, you'll need GNU make, mkisofs, and a few basic shell utilities.

5. [Optional] Customize:

If you want to customize the kernel that is used, it's in "mdroot/kernels/"

NOTE: If you change the name of the kernel, edit the file "mdroot/boot/menu.rc" (kernel paths are at the top)
NOTE: You can load multiple kernels if you want (and configure the menu to display them for selection)

If you want to customize the boot menu, that's in "mdroot/boot/menu.rc"

If you want to add kernel modules, those go into "mdroot/boot/modules/"

If you want to customize the mfsroot, there's a whole framework for that in "dep/freebsd/mfsroot/" (however, you'll need a FreeBSD host to customize that portion).

If you want to simply add new commands to DruidBSD, dump new binaries into "src/freebsd/rescue/"

NOTE: There's a corresponding "src/freebsd/rescue/lib/" for you to dump library dependencies.

If you want to add other miscellaneous files, just dump them into "src/freebsd/".

6. Produce an ISO for mastering to USB stick:

make

NOTE: Sorry, this has to be GNU make (so on FreeBSD, say "gmake" instead).
NOTE: This produces the ISO file (image) of your custom FreeBSD memstick

7. Play

Use the instructions here to get your ISO onto physical media:

http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/src/tools/

NOTE: Start with "README"

NOTE: There are many methods for many operating systems documented and even some tools for download (such as a Win32 GUI tool for imaging the ISO onto USB stick).

Remember, that ISO can be burned to optical media _and_ imaged to USB stick (or any hard disk for that matter) without changing anything about the ISO (that's the nature of the DRUID architecture).

I demonstrated much of this at the last DevSummit, but it's not part of FreeBSD. If you have any questions, let me know.
-- 
Devin


On Nov 8, 2012, at 3:36 PM, Robison, Dave wrote:

> Druid is Devin's baby so I will CC him
> 
> I do not think he has done HEAD on druid yet... but it's not a bad idea.
> 
> 
> Dave
> 
> 
> On 11/08/2012 15:35, Sam Fourman Jr. wrote:
>> On Thu, Nov 8, 2012 at 4:11 PM, Robison, Dave
>> <david.robison at fisglobal.com> wrote:
>>> If you're just looking for a release on memstick, check out druidbsd
>>> 
>>> http://druidbsd.sourceforge.net/
>>> 
>>> If you're doing it to learn the process, I'm sure you can learn a few
>>> things from druidbsd anyway...
>>> 
>>> Enjoy
>>> 
>>> Dave
>> 
>> Thank you Dave,
>> 
>> do you build a version of DruidBSD based on HEAD?
>> 
>> im really trying to learn the process, and id like to know how to
>> alter the install image size.. then ill start with customization from
>> there.
>> 
> 
> 
> -- 
> Dave Robison
> Sales Solution Architect II
> FIS Banking Solutions
> 510/621-2089 (w)
> 530/518-5194 (c)
> 510/621-2020 (f)
> daver at vicor.com
> david.robison at fisglobal.com

_____________
The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.


More information about the freebsd-hackers mailing list