Paul de Weerd wrote:
On Sat, May 14, 2005 at 03:59:57AM +0200, Per Engelbrecht wrote:
| >So that's a good hint that you should be able to use CCD during
| >install. I'd suggest (as suggested earlier) first installing /var on /
| >(as it's only ~10MB). Then, when the installer finishes, you can
| >simply enter your newly installed system with
| >
| > $ /mnt/usr/sbin/chroot /mnt
| | Hmm, normally when moving content of a partition (not often) I prepare | the disklabel, boot into single-user mode and do a simple tar->cpio | operation before dealing with 'fstab' and reboot ... I'm not quite sure | I get your point about the /mnt/usr/sbin/chroot ?!
| It's the path plus 'chroot' I'm thinking about.


From your original mail I understood you wanted to create the CCD
during install :

It is, I just tried to outline my normal procedure in relation to what you described. Don't ask why, because I can't tell your right now after a few hours of sleep.




Is it possible to build a ccd during install ?


So what this means is that if you are installing your amd64-system
from a RAMDISK or RAMDISK_CD kernel, you have a kernel that supports
CCD. Then you can, when the installer is done (and you get the
"Congratulations, you have successfully installed OpenBSD" message)
you can enter your freshly installed system using chroot(8) as found
in /usr/sbin/chroot (so it's in /mnt/usr/sbin/chroot before you chroot
to /mnt). After the chroot, you can add users, configure the boot
procedure (rc.conf.local/ntpd.conf/sysctl.conf/fstab/sudoers/etc.) and
do all sorts of other stuff. Including creating a CCD, adding the
newly created CCD to /etc/fstab, mounting it on /var/ and copying the
data from the install to it.

Okay now I actually get it! *the sound of my head hitting the table*


I don't think this is easily possible from the installer (It'll probably take up quite a bit of space on the bootmedia for very little gain - your setup, although very nice, is not very common I think), so you can work around this "shortcomming" of the installer by doing some pre-boot work within a chroot.

And you just enlightend me. Thank you!

The history behind the unusual setup is that I for one have this thing about seperate partitions for everything and always putting all the /usr/* on one disk and all the /var/* on other seperate disk(s). I've made this setup before the "old" way [3.6 / same hw] and made the ccd partition /data for central syslog-ng, snort (master) et al. I use mysql as backend and yes I could use configure_whatever_args for mysql datadir location and such, but if I could have /var placed on the ccd from first boot it would be spot on. That's why.


| I'm with you (almost) all the way :)

I hope the above clears things up a bit ;)

You've cleared up a whole lot Paul. (thumbs up)


Cheers,

Paul 'WEiRD' de Weerd

respectfully /per [EMAIL PROTECTED]



Reply via email to