diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-10-28 17:51:15 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-10-28 17:51:15 +0000 |
commit | 5634baa1daa7963e129559d0445118d6a6cf3b32 (patch) | |
tree | 215c278b98c94dd8096c5509a52cd8b98fc9689f /distrib/miniroot/install.sub | |
parent | f5225655c5f492306254889b0c8a081d4fba7000 (diff) |
Move md_copy_kernel after install_sets and add check_kernel (which
should probably be used instead of md_copy_kernel once I am sure
nothing actually uses md_copy_kernel to copy the kernel any more).
Diffstat (limited to 'distrib/miniroot/install.sub')
-rw-r--r-- | distrib/miniroot/install.sub | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sub b/distrib/miniroot/install.sub index dbc62efb838..4812d1f120a 100644 --- a/distrib/miniroot/install.sub +++ b/distrib/miniroot/install.sub @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sub,v 1.108 1998/10/19 19:22:18 deraadt Exp $ +# $OpenBSD: install.sub,v 1.109 1998/10/28 17:51:14 millert Exp $ # $NetBSD: install.sub,v 1.5.2.8 1996/09/02 23:25:02 pk Exp $ # # Copyright (c) 1997,1998 Todd Miller, Theo de Raadt @@ -2082,3 +2082,23 @@ _fstab=$1 echo "Done." ) < $_fstab } + +check_kernel() { + if [ ! -s /mnt/bsd ]; then + echo "" + echo "Warning, no kernel installed!" + echo "You did not unpack a file set containing a kernel." + echo "This is needed to boot. Please note that the install" + echo "install kernel is not suitable for general use." + echo -n "Escape to shell add /mnt/bsd by hand? [y] " + getresp "y" + case "$resp" in + y*|Y*) + echo "Type 'exit' to return to install." + sh + ;; + *) + ;; + esac + fi +} |