diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-23 19:45:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-06-23 19:45:04 +0000 |
commit | d83f5786ed940c67fb7d66cc4945a1b84f6279af (patch) | |
tree | 7eb4382f0b4f8a5b9b50615f865e3fffb407de80 /distrib/mvme88k/ramdisk | |
parent | 12ce374fe89e95dea19bb150c4921a44f38e2b67 (diff) |
argh. stop using kernfs, using dmesg using sysctl. encode ARCH into
install.md at build time. remove some crud. and the icing on the cake:
skip testing all this until next week
Diffstat (limited to 'distrib/mvme88k/ramdisk')
-rw-r--r-- | distrib/mvme88k/ramdisk/dot.profile | 3 | ||||
-rw-r--r-- | distrib/mvme88k/ramdisk/install.md | 53 | ||||
-rw-r--r-- | distrib/mvme88k/ramdisk/install.sh | 8 | ||||
-rw-r--r-- | distrib/mvme88k/ramdisk/list | 4 | ||||
-rw-r--r-- | distrib/mvme88k/ramdisk/mtree.conf | 7 |
5 files changed, 9 insertions, 66 deletions
diff --git a/distrib/mvme88k/ramdisk/dot.profile b/distrib/mvme88k/ramdisk/dot.profile index cf72a5e32fe..16c9394aeb9 100644 --- a/distrib/mvme88k/ramdisk/dot.profile +++ b/distrib/mvme88k/ramdisk/dot.profile @@ -1,5 +1,5 @@ # -# $OpenBSD: dot.profile,v 1.3 2000/10/25 16:38:17 millert Exp $ +# $OpenBSD: dot.profile,v 1.4 2001/06/23 19:44:49 deraadt Exp $ # # Copyright (c) 1994 Christopher G. Demetriou # All rights reserved. @@ -37,7 +37,6 @@ export TERM=vt200 umask 022 set -o emacs # emacs-style command line editing -alias dmesg="cat /kern/msgbuf" # set up some sane defaults echo 'erase ^?, werase ^H, kill ^U, intr ^C, status ^T' diff --git a/distrib/mvme88k/ramdisk/install.md b/distrib/mvme88k/ramdisk/install.md index a070ad5d7d8..271ce9a47f9 100644 --- a/distrib/mvme88k/ramdisk/install.md +++ b/distrib/mvme88k/ramdisk/install.md @@ -1,4 +1,4 @@ -# $OpenBSD: install.md,v 1.6 2001/01/25 19:18:40 deraadt Exp $ +# $OpenBSD: install.md,v 1.7 2001/06/23 19:44:49 deraadt Exp $ # Copyright (c) 1996 The NetBSD Foundation, Inc. # All rights reserved. # @@ -39,9 +39,6 @@ # # -TMPWRITEABLE=/tmp/writeable -KERNFSMOUNTED=/tmp/kernfsmounted - md_set_term() { if [ ! -z "$TERM" ]; then return @@ -52,21 +49,17 @@ md_set_term() { export TERM } -md_machine_arch() { - cat /kern/machine -} - md_get_diskdevs() { - egrep -a "^sd[0-9] " < /kern/msgbuf + dmesg | egrep -a "^sd[0-9] " } md_get_cddevs() { - egrep -a "^cd[0-9] " < /kern/msgbuf + dmesg | egrep -a "^cd[0-9] " } md_get_ifdevs() { # return available network devices - egrep "(^ie[0-9] )|(^le[0-9] )"< /kern/msgbuf | cut -d" " -f1 | sort -u + dmesg | egrep "(^ie[0-9] )|(^le[0-9] )" | cut -d" " -f1 | sort -u } md_get_partition_range() { @@ -244,41 +237,3 @@ __congratulations_1 md_native_fstype() { } - -md_makerootwritable() { - - if [ -e ${TMPWRITEABLE} ] - then - md_mountkernfs - return - fi - umount /tmp >> /dev/null 2>&1 - if ! mount -t ffs -u /dev/rd0a / ; then - cat << \__rd0_failed_1 - -FATAL ERROR: Can't mount the ram filesystem. - -__rd0_failed_1 - exit - fi - - # Bleh. Give mount_mfs a chance to DTRT. - sleep 2 - > ${TMPWRITEABLE} - - md_mountkernfs -} -md_mountkernfs() { - if [ -e ${KERNFSMOUNTED} ] - then - return - fi - if ! mount -t kernfs /kern /kern - then - cat << \__kernfs_failed_1 -FATAL ERROR: Can't mount kernfs filesystem -__kernfs_failed_1 - exit - fi - > ${KERNFSMOUNTED} -} diff --git a/distrib/mvme88k/ramdisk/install.sh b/distrib/mvme88k/ramdisk/install.sh index ec6e73ee274..06ae7dc704f 100644 --- a/distrib/mvme88k/ramdisk/install.sh +++ b/distrib/mvme88k/ramdisk/install.sh @@ -1,5 +1,5 @@ # -# $OpenBSD: install.sh,v 1.2 2000/01/24 04:51:55 smurph Exp $ +# $OpenBSD: install.sh,v 1.3 2001/06/23 19:44:49 deraadt Exp $ # # Copyright (c) 1996 The NetBSD Foundation, Inc. # All rights reserved. @@ -62,7 +62,6 @@ MODE="install" # md_congrats() - display friendly message # md_native_fstype() - native filesystem type for disk installs # md_native_fsopts() - native filesystem options for disk installs -# md_makerootwritable() - make root writable (at least /tmp) # include machine dependent subroutines . install.md @@ -96,11 +95,6 @@ md_set_term # Get timezone info get_timezone -# Make sure we can write files (at least in /tmp) -# This might make an MFS mount on /tmp, or it may -# just re-mount the root with read-write enabled. -md_makerootwritable - # Install the shadowed disktab file; lets us write to it for temporary # purposes without mounting the miniroot read-write. cp /etc/disktab.shadow /tmp/disktab.shadow diff --git a/distrib/mvme88k/ramdisk/list b/distrib/mvme88k/ramdisk/list index 0d7a241bd0b..292c5cf7dc8 100644 --- a/distrib/mvme88k/ramdisk/list +++ b/distrib/mvme88k/ramdisk/list @@ -1,4 +1,4 @@ -# $OpenBSD: list,v 1.4 2000/07/14 20:46:57 deraadt Exp $ +# $OpenBSD: list,v 1.5 2001/06/23 19:44:50 deraadt Exp $ COPY ${OBJDIR}/raminst raminst LINK raminst bin/cat @@ -86,7 +86,7 @@ LINK sbin/init usr/bin/vi COPY dot.profile .profile COPY dot.instutils .instutils COPY install.sh install -COPY install.md install.md +SPECIAL sed -e '/^#[ ].*$/d' -e "s/^ARCH=ARCH$/ARCH=`arch -s`/" < ${CURDIR}/install.md > install.md COPY install.sub install.sub COPY disktab.shadow etc/disktab.shadow COPY ${DESTDIR}/usr/mdec/installboot usr/mdec diff --git a/distrib/mvme88k/ramdisk/mtree.conf b/distrib/mvme88k/ramdisk/mtree.conf index 2496928f236..eaf11101c3f 100644 --- a/distrib/mvme88k/ramdisk/mtree.conf +++ b/distrib/mvme88k/ramdisk/mtree.conf @@ -1,5 +1,5 @@ # -# $OpenBSD: mtree.conf,v 1.1 1998/12/17 02:16:33 smurph Exp $ +# $OpenBSD: mtree.conf,v 1.2 2001/06/23 19:44:50 deraadt Exp $ # /set type=dir uname=root gname=wheel mode=0755 @@ -41,11 +41,6 @@ tmp # ./tmp .. -# ./kern -kern -# ./kern -.. - # ./usr usr |