Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Jan 1996 23:03:34 -0800
From:      "Jordan K. Hubbard" <jkh@time.cdrom.com>
To:        Wilson MacGyver <macgyver@cylatech.com>
Cc:        hackers@freebsd.org
Subject:   Re: Booting from CD..? 
Message-ID:  <10618.821516614@time.cdrom.com>
In-Reply-To: Your message of "Sat, 13 Jan 1996 01:32:18 EST." <30F751F2.B00@cylatech.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Jordan wrote.. 
> > 2. Take advantage of Win95's `autolaunch' on CD insertion to do
> >    something clever.  Not exactly sure WHAT yet, but it's an idea.
> 
> How about using it to automaticly create a boot disk?

You can sort of do that now, though I guess I didn't document it
enough to make it very useful.  Just stick a file on the boot floppy
(it can be called anything, though freebsd.cfg is the default)
and run it as a `script'.

Here's the script I use for installing my laptop in a fully automated
fashion:

# This is the installation configuration file for my laptop, fat.cdrom.com.
# It is included here merely as a sort-of-documented example.

# Turn on extra debugging.
debug=yes

# My host specific data
hostname=fat.cdrom.com
domainname=cdrom.com
nameserver=192.216.222.3
defaultrouter=192.216.222.225
ipaddr=192.216.222.227
netmask=255.255.255.240

# Which installation device to use - ftp is pointed directly at my local
# machine and the installation device is my PC CARD ethernet interface.
# the "script" keyword lets mediaSetFTP know that it's being run from
# a script and shouldn't prompt the user for extra details.  If you *want*
# it to prompt, you can pass it either "express", "novice" or "custom"
# to set the level of detail for such prompting.  This is a general convention
# which you'll see elsewhere in this script file.
ftp=ftp://time.cdrom.com/pub
mediaSetFTP=script
tcpInstallDevice=ze0

# Select which distributions we want.
distSetUser

# Now set the parameters for the partition editor.  Set to use all remaining
# free space (could also be "all" or "existing" to use all the disk or an
# existing FreeBSD slice).  Pass the script parameter to diskPartitionEditor
# so it's not interactive, as described above.
disk=wd0
diskSpace=free
bootManager=booteasy
diskPartitionEditor=script

# It's bogus that we have to re-enter the label editor for each partition
# we want to create, but it was easier to do it this way (from a programming
# standpoint, not a user standpoint!).  This assumes that slice 1 is a DOS
# partition and mounts it as /dos, which is the case on my laptop.
# We can also create a root partition of 20MB in size on the same pass since
# it's in a different slice (s2).  All sizes are expressed in 512 byte blocks!
wd0s1=/dos N
wd0s2=partition 40960 /
diskLabelEditor=script

# Now make a 20MB swap partition in the second slice.
wd0s2=swap 40960 none
diskLabelEditor=script

# Size of 0 means allocate the rest of the space to /usr
wd0s2=partition 0 /usr
diskLabelEditor=script

# OK, everything is set.  Do it!
installCommit=script



Of course, this doesn't handle hardware configuration details, but
that's going to require the implementation of more clever boot
mechanisms anyway.

					Jordan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?10618.821516614>