diff options
author | grr <grr@cvs.openbsd.org> | 1997-05-29 08:38:58 +0000 |
---|---|---|
committer | grr <grr@cvs.openbsd.org> | 1997-05-29 08:38:58 +0000 |
commit | 6173c79d7b635197337a7526fddc5fa807ad0fdd (patch) | |
tree | a6b5046363365a51ed4851b3c28761025e40a970 | |
parent | 70af189295ca019f8c906e4024749aa7a1cc4dc5 (diff) |
fix sparc install.md so that it copes with either a kernel image present to copy (minidisk) or need to install one from the distribution sets (ramdisk), also work around binstall vs. instbin problems by simply using installboot for bootstrap installation
-rw-r--r-- | distrib/sparc/install.md | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/distrib/sparc/install.md b/distrib/sparc/install.md index 2fce50951ec..b079ccfea52 100644 --- a/distrib/sparc/install.md +++ b/distrib/sparc/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.12 1997/05/22 17:01:23 johns Exp $ +# $OpenBSD: install.md,v 1.13 1997/05/29 08:38:57 grr Exp $ # $NetBSD: install.md,v 1.3.2.5 1996/08/26 15:45:28 gwr Exp $ # # @@ -42,9 +42,12 @@ # # Machine-dependent install sets -MDSETS="xbin xman xinc xcon" MSGBUF=/kern/msgbuf HOSTNAME=/kern/hostname +MDSETS="xbin xman xinc xcon" +if [ ! -f /bsd ]; then + MDSETS="kernel ${MDSETS}" +fi # an alias for hostname(1) hostname() { @@ -120,7 +123,9 @@ md_get_partition_range() { md_installboot() { echo "Installing boot block..." - /usr/mdec/binstall ffs /mnt + cp /usr/mdec/boot /mnt/boot + sync; sync; sync + installboot -v /mnt/boot /usr/mdec/bootxx /dev/r${1}a } md_native_fstype() { @@ -216,9 +221,11 @@ __md_prep_disklabel_1 } md_copy_kernel() { - echo -n "Copying kernel..." - cp -p /bsd /mnt/bsd - echo "done." + if [ -f /bsd ]; then + echo -n "Copying kernel..." + cp -p /bsd /mnt/bsd + echo "done." + fi } md_welcome_banner() { |