![]() |
Now serving 108 guides. |
|
Pimp My OpenBSD bootfloppy General Information This short how-to gives you some basic hints on how to customize the OpenBSD bootfloppy, and how to setup an easy accessible shellscript.Requirements
Configuration Okay, I toyed a bit with the OpenBSD installation process. Luckily it is an open-source OS, and the installation process fits on a single 1.44-floppy, which is kinda cool. Anyhow, the default setup is one with a ramdisk, and the filesystem is somehow linked to the kernel. That makes it a bit hard to customize it, don't you think?So, I want to show you a way to make changes to the bootfloppy a tiny bit easier... Not very far though... Just enough to show you how to run an easier to access shell-script after every boot. Note: Btw: You'll have to do everything as root... Sorry!! Installation of your basic tools. You need OpenBSD running on a local machine for this. The default installation comes without the stuff under/usr/src, so just grab it and unpack it:
Let your computer find a shellscript Remember your last installation of OpenBSD? The computer asked you if you wanted to (I)nstall, (U)pgrade or (S)hell. The file which does that is located under/usr/src/distrib/miniroot and called dot.profile It is the first file to be started after your computer booted. Therefore, as a quick-and-dirty hack, it is not a bad idea to edit it. My idea was to let it mount the bootdevice, copy a file from there, umount the bootdevice, and run it. Of course, I had no clue on how to find the correct boot-device. So I made my hack a bit dirtier...Just find the lines
Make your own bootfloppy Save your/usr/src/distrib/miniroot/dot.profile. And now type in:
svnd0, this will hopfully give you a file called floppyXX_autoexec.ksh.fs, where XX is the release-number. In my case it was 37.Setting up your shellscript Now you have told your computer where to find a shellscript calledautoexec.ksh. All you have to do now is to write it. First of all, mount your new floppy-image
autoexec.ksh with your favourite editor, for example echo:
Anyway... That is something I haven't really tried yet, but I am working on it at the moment. And because we are talking about less than 2MB here, let us just hope that Theo keeps up his good work, and those bootfloppy will never become obsolete. I have already written a how-to on how to use an OpenBSD bootfloppy to boot up your dedicated-/root-/hosted server. Get it at http://www.dettus.net/openbsd_at_strato.txt or at http://www.bsdguides.org/guides/openbsd/misc/openbsd_at_strato.php. This guide is © 2005 - 2010 thomas dettbarn. Author: thomas dettbarn |
Copyright 2003 - 2010 BSD Guides. All rights reserved. |
About | Terms of Use | Privacy | Contact |

