1993-08-11 13:30:59 +01:00
|
|
|
#!/bin/sh
|
|
|
|
# install2.fs disk 'install'
|
1993-08-12 08:14:23 +01:00
|
|
|
# Simplified, interactive FreeBSD installation script.
|
1993-08-11 13:30:59 +01:00
|
|
|
# D.E. Silvia (dsilvia@net.com)
|
|
|
|
#
|
1993-08-12 08:14:23 +01: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 13:30:59 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
echo -n "Verbose installation? [n] "
|
|
|
|
read resp
|
|
|
|
case $resp in
|
|
|
|
y*)
|
1993-08-11 13:51:37 +01:00
|
|
|
cpioverbose=v
|
1993-08-11 13:30:59 +01:00
|
|
|
;;
|
|
|
|
*)
|
1993-08-11 13:51:37 +01:00
|
|
|
cpioverbose=
|
1993-08-11 13:30:59 +01: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 13:02:11 +01:00
|
|
|
echo
|
|
|
|
echo "Please wait. Copying to disk..."
|
1993-08-12 08:14:23 +01: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 13:02:11 +01:00
|
|
|
mnt/usr/bin/gunzip < mnt/inst2.cpio.gz | cpio -idmu${cpioverbose}
|
1993-08-12 08:14:23 +01:00
|
|
|
cd /mnt
|
1993-08-26 04:20:28 +01:00
|
|
|
ls .profile install usr/bin/* | cpio -pdmu${cpioverbose} /
|
1993-08-12 08:14:23 +01:00
|
|
|
cd /dev
|
1993-08-26 04:20:28 +01:00
|
|
|
echo " done."
|
1993-09-08 12:25:17 +01:00
|
|
|
echo
|
1993-08-26 04:20:28 +01:00
|
|
|
echo "Building /dev files..."
|
1993-08-12 08:14:23 +01:00
|
|
|
sh MAKEDEV all
|
|
|
|
cd /
|
1993-08-26 04:20:28 +01:00
|
|
|
echo " done."
|
1993-08-11 13:30:59 +01:00
|
|
|
|
|
|
|
sync
|