1993-08-11 12:30:59 +00:00
|
|
|
#!/bin/sh
|
|
|
|
# install2.fs disk 'install'
|
1993-08-12 07:14:23 +00:00
|
|
|
# Simplified, interactive FreeBSD installation script.
|
1993-08-11 12:30:59 +00:00
|
|
|
# D.E. Silvia (dsilvia@net.com)
|
|
|
|
#
|
1993-08-12 07:14:23 +00:00
|
|
|
# Heavily hacked on for support of FreeBSD
|
|
|
|
# by Rodney W. Grimes (rgrimes@cdrom.com) 1993/08/11
|
|
|
|
#
|
|
|
|
# Installs balance of basic FreeBSD system.
|
1993-08-11 12:30:59 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
echo -n "Verbose installation? [n] "
|
|
|
|
read resp
|
|
|
|
case $resp in
|
|
|
|
y*)
|
1993-08-11 12:51:37 +00:00
|
|
|
cpioverbose=v
|
1993-08-11 12:30:59 +00:00
|
|
|
;;
|
|
|
|
*)
|
1993-08-11 12:51:37 +00:00
|
|
|
cpioverbose=
|
1993-08-11 12:30:59 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
echo
|
|
|
|
echo "Please wait. Copying to disk..."
|
1993-09-11 06:03:37 +00:00
|
|
|
# remove /.profile so that the right things happen when it gets
|
|
|
|
# over written
|
|
|
|
rm /.profile
|
1993-08-12 07:14:23 +00:00
|
|
|
cd /
|
Added DOS partition support and maybe badblock remappping.
The following additional changes are needed for the new install disks:
1) Remove from filesystem disk's /filelist: bin/cat, dev/MAKEDEV.local.
2) Remove from the filesystem disk: /bin/cat, /COPYRIGHT and /dev/MAKEDEV.local.
3) Add to the filesystem disk: /sbin/fdisk, /dev/fd1a and /dev/rfd1a.
4) Build a fourth DOS disk containing at least: os-bs, rz/sz
Outstanding problems:
1) If there are >1024 cylinders, then FreeBSD cannot boot unless installed
at cylinder 0 (and since neither can DOS evidently, the two can't share
a disk in this case).
2) If FreeBSD is installed at cylinder 0, subsequent installs tend to fail.
3) If a DOS partition exists, disklabel doesn't seem to update the disk
geometry in the FreeBSD disklabel correctly (so reinstalling FreeBSD with
a new geometry requires installing it at cylinder 0). Rod suggested
invoking disklabel on the raw c-partition. This makes sense, but it
doesn't seem to work (newfs, for instance, can't find the new label).
1993-09-07 12:02:11 +00:00
|
|
|
mnt/usr/bin/gunzip < mnt/inst2.cpio.gz | cpio -idmu${cpioverbose}
|
1993-08-12 07:14:23 +00:00
|
|
|
cd /mnt
|
1993-08-26 03:20:28 +00:00
|
|
|
ls .profile install usr/bin/* | cpio -pdmu${cpioverbose} /
|
1993-08-12 07:14:23 +00:00
|
|
|
cd /dev
|
1993-08-26 03:20:28 +00:00
|
|
|
echo " done."
|
1993-09-08 11:25:17 +00:00
|
|
|
echo
|
1993-08-26 03:20:28 +00:00
|
|
|
echo "Building /dev files..."
|
1993-08-12 07:14:23 +00:00
|
|
|
sh MAKEDEV all
|
|
|
|
cd /
|
1993-08-26 03:20:28 +00:00
|
|
|
echo " done."
|
1993-08-11 12:30:59 +00:00
|
|
|
|
|
|
|
sync
|