Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/distrib/sparc64/xminiroot Pull up revision 1.1 (request...



details:   https://anonhg.NetBSD.org/src/rev/a2fd9d2f06f7
branches:  netbsd-1-5
changeset: 490596:a2fd9d2f06f7
user:      he <he%NetBSD.org@localhost>
date:      Sat Feb 03 20:21:28 2001 +0000

description:
Pull up revision 1.1 (requested by mrg):
  Rename sparc64 ``ramdisk'' to ``xminiroot'' to avoid confusion
  about what it actually does.

diffstat:

 distrib/sparc64/xminiroot/disktab               |   37 ++++
 distrib/sparc64/xminiroot/disktab.preinstall    |   31 +++
 distrib/sparc64/xminiroot/dist/base_obsolete    |    1 +
 distrib/sparc64/xminiroot/dist/comp_obsolete    |    1 +
 distrib/sparc64/xminiroot/dist/games_obsolete   |    1 +
 distrib/sparc64/xminiroot/dist/man_obsolete     |    1 +
 distrib/sparc64/xminiroot/dist/misc_obsolete    |    1 +
 distrib/sparc64/xminiroot/dist/secr_obsolete    |    1 +
 distrib/sparc64/xminiroot/dist/xbase_obsolete   |    1 +
 distrib/sparc64/xminiroot/dist/xserver_obsolete |    1 +
 distrib/sparc64/xminiroot/dot.profile.m4        |   78 +++++++++
 distrib/sparc64/xminiroot/list.m4               |  133 +++++++++++++++
 distrib/sparc64/xminiroot/mtree.conf            |   92 ++++++++++
 distrib/sparc64/xminiroot/ramdiskbin.m4         |   55 ++++++
 distrib/sparc64/xminiroot/termcap.mini          |  202 ++++++++++++++++++++++++
 15 files changed, 636 insertions(+), 0 deletions(-)

diffs (truncated from 696 to 300 lines):

diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/disktab
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/disktab Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,37 @@
+#      $NetBSD: disktab,v 1.1.2.2 2001/02/03 20:21:28 he Exp $
+#
+# Disk geometry and partition layout tables.
+# Key:
+#      dt      controller type
+#      ty      type of disk (fixed, removeable, simulated)
+#      d[0-4]  drive-type-dependent parameters
+#      ns      #sectors/track
+#      nt      #tracks/cylinder
+#      nc      #cylinders/disk
+#      sc      #sectors/cylinder, ns*nt default
+#      su      #sectors/unit, sc*nc default
+#      se      sector size, DEV_BSIZE default
+#      rm      rpm, 3600 default
+#      sf      supports bad144-style bad sector forwarding
+#      sk      sector skew per track, default 0
+#      cs      sector skew per cylinder, default 0
+#      hs      headswitch time, default 0
+#      ts      one-cylinder seek time, default 0
+#      il      sector interleave (n:1), 1 default
+#      bs      boot block size, default BBSIZE
+#      sb      superblock size, default SBSIZE
+#      o[a-h]  partition offsets in sectors
+#      p[a-h]  partition sizes in sectors
+#      b[a-h]  partition block sizes in bytes
+#      f[a-h]  partition fragment sizes in bytes
+#      t[a-h]  partition types (filesystem, swap, etc)
+#
+# All partition sizes reserve space for bad sector tables.
+# (5 cylinders needed for maintenance + replacement sectors)
+#
+
+# pseudo-geometry taken from rd7945
+miniroot:\
+       :ty=winchester:ns#16:nt#7:nc#968:\
+       :pa#10240:ba#8192:fa#1024:\
+       :pc#10240:bc#8192:fc#1024:
diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/disktab.preinstall
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/disktab.preinstall      Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,31 @@
+#      $NetBSD: disktab.preinstall,v 1.1.2.2 2001/02/03 20:21:30 he Exp $
+#
+# Disk geometry and partition layout tables. 
+# Key:
+#      dt      controller type
+#      ty      type of disk (fixed, removeable, simulated)
+#      d[0-4]  drive-type-dependent parameters
+#      ns      #sectors/track
+#      nt      #tracks/cylinder
+#      nc      #cylinders/disk
+#      sc      #sectors/cylinder, nc*nt default
+#      su      #sectors/unit, sc*nc default
+#      se      sector size, DEV_BSIZE default
+#      rm      rpm, 3600 default
+#      sf      supports bad144-style bad sector forwarding
+#      sk      sector skew per track, default 0
+#      cs      sector skew per cylinder, default 0
+#      hs      headswitch time, default 0
+#      ts      one-cylinder seek time, default 0
+#      il      sector interleave (n:1), 1 default
+#      bs      boot block size, default BBSIZE
+#      sb      superblock size, default SBSIZE
+#      o[a-h]  partition offsets in sectors
+#      p[a-h]  partition sizes in sectors
+#      b[a-h]  partition block sizes in bytes
+#      f[a-h]  partition fragment sizes in bytes
+#      t[a-h]  partition types (filesystem, swap, etc)
+#
+# All partition sizes reserve space for bad sector tables.
+# (5 cylinders needed for maintenance + replacement sectors)
+#
diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/dist/base_obsolete
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/dist/base_obsolete      Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,1 @@
+$NetBSD: base_obsolete,v 1.1.2.2 2001/02/03 20:21:42 he Exp $
diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/dist/comp_obsolete
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/dist/comp_obsolete      Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,1 @@
+$NetBSD: comp_obsolete,v 1.1.2.2 2001/02/03 20:21:44 he Exp $
diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/dist/games_obsolete
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/dist/games_obsolete     Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,1 @@
+$NetBSD: games_obsolete,v 1.1.2.2 2001/02/03 20:21:45 he Exp $
diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/dist/man_obsolete
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/dist/man_obsolete       Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,1 @@
+$NetBSD: man_obsolete,v 1.1.2.2 2001/02/03 20:21:48 he Exp $
diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/dist/misc_obsolete
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/dist/misc_obsolete      Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,1 @@
+$NetBSD: misc_obsolete,v 1.1.2.2 2001/02/03 20:21:50 he Exp $
diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/dist/secr_obsolete
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/dist/secr_obsolete      Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,1 @@
+$NetBSD: secr_obsolete,v 1.1.2.2 2001/02/03 20:21:52 he Exp $
diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/dist/xbase_obsolete
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/dist/xbase_obsolete     Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,1 @@
+$NetBSD: xbase_obsolete,v 1.1.2.2 2001/02/03 20:21:54 he Exp $
diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/dist/xserver_obsolete
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/dist/xserver_obsolete   Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,1 @@
+$NetBSD: xserver_obsolete,v 1.1.2.2 2001/02/03 20:21:56 he Exp $
diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/dot.profile.m4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/dot.profile.m4  Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,78 @@
+# $NetBSD: dot.profile.m4,v 1.1.2.2 2001/02/03 20:21:32 he Exp $
+#
+# Copyright (c) 1997 Perry E. Metzger
+# Copyright (c) 1994 Christopher G. Demetriou
+# All rights reserved.
+# 
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+# 1. Redistributions of source code must retain the above copyright
+#    notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+#    notice, this list of conditions and the following disclaimer in the
+#    documentation and/or other materials provided with the distribution.
+# 3. All advertising materials mentioning features or use of this software
+#    must display the following acknowledgement:
+#          This product includes software developed for the
+#          NetBSD Project.  See http://www.netbsd.org/ for
+#          information about NetBSD.
+# 4. The name of the author may not be used to endorse or promote products
+#    derived from this software without specific prior written permission.
+# 
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# 
+# <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
+
+PATH=/sbin:/bin:/usr/bin:/usr/sbin:/
+export PATH
+
+ifelse(MACHINE,i386,TERM=pc3)
+ifelse(MACHINE,sparc,TERM=sun)
+export TERM
+HOME=/
+export HOME
+BLOCKSIZE=1k
+export BLOCKSIZE
+EDITOR=ed
+export EDITOR
+
+umask 022
+
+if [ "X${DONEPROFILE}" = "X" ]; then
+       DONEPROFILE=YES
+       export DONEPROFILE
+
+       # set up some sane defaults
+       echo 'erase ^?, werase ^W, kill ^U, intr ^C'
+       stty newcrt werase ^W intr ^C kill ^U erase ^? 9600
+       echo ''
+
+       echo -n "Terminal type (just hit ENTER for '$TERM'): "
+       read ans
+       if [ -n "$ans" ];then
+           TERM=$ans
+       fi
+
+       # mount the kern_fs so that we can find the root device, and also
+       # examine the dmesg state
+       mount -t kernfs /kern /kern
+
+       # hack to get around bugs in kernfs's rootdev/rrootdev lookup.
+       ls -l /dev/* > /dev/null 2>&1
+
+       # mount the ramdisk read write
+       mount -t ffs -u /kern/rootdev /
+
+       # run the installation or upgrade script.
+       sysinst
+fi
diff -r 4c4153e09a79 -r a2fd9d2f06f7 distrib/sparc64/xminiroot/list.m4
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/distrib/sparc64/xminiroot/list.m4 Sat Feb 03 20:21:28 2001 +0000
@@ -0,0 +1,133 @@
+#      $NetBSD: list.m4,v 1.1.2.2 2001/02/03 20:21:34 he Exp $
+
+# copy the crunched binary, link to it, and kill it
+COPY   ${OBJDIR}/ramdiskbin            ramdiskbin
+LINK   ramdiskbin                      sysinst
+LINK   ramdiskbin                      bin/cat
+LINK   ramdiskbin                      bin/chmod
+LINK   ramdiskbin                      bin/cp
+LINK   ramdiskbin                      bin/dd
+LINK   ramdiskbin                      bin/df
+LINK   ramdiskbin                      bin/ed
+LINK   ramdiskbin                      bin/ln
+LINK   ramdiskbin                      bin/ls
+LINK   ramdiskbin                      bin/mkdir
+LINK   ramdiskbin                      bin/mt
+LINK   ramdiskbin                      bin/mv
+LINK   ramdiskbin                      bin/pax
+LINK   ramdiskbin                      bin/pwd
+LINK   ramdiskbin                      bin/rm
+LINK   ramdiskbin                      bin/sh
+LINK   ramdiskbin                      bin/stty
+LINK   ramdiskbin                      bin/sync
+LINK   ramdiskbin                      bin/test
+LINK   ramdiskbin                      bin/[
+LINK   ramdiskbin                      sbin/cd9660
+LINK   ramdiskbin                      sbin/disklabel
+LINK   ramdiskbin                      sbin/ffs
+LINK   ramdiskbin                      sbin/fsck
+LINK   ramdiskbin                      sbin/fsck_ffs
+LINK   ramdiskbin                      sbin/halt
+LINK   ramdiskbin                      sbin/ifconfig
+LINK   ramdiskbin                      sbin/init
+LINK   ramdiskbin                      sbin/kernfs
+LINK   ramdiskbin                      sbin/mknod
+LINK   ramdiskbin                      sbin/mount
+LINK   ramdiskbin                      sbin/mount_cd9660
+LINK   ramdiskbin                      sbin/mount_ext2fs
+LINK   ramdiskbin                      sbin/mount_ffs
+LINK   ramdiskbin                      sbin/mount_lfs
+LINK   ramdiskbin                      sbin/mount_kernfs
+LINK   ramdiskbin                      sbin/mount_msdos
+LINK   ramdiskbin                      sbin/mount_mfs
+LINK   ramdiskbin                      sbin/mount_nfs
+LINK   ramdiskbin                      sbin/msdos
+LINK   ramdiskbin                      sbin/newfs
+LINK   ramdiskbin                      sbin/newfs_lfs
+LINK   ramdiskbin                      sbin/nfs
+LINK   ramdiskbin                      sbin/ping
+LINK   ramdiskbin                      sbin/reboot
+LINK   ramdiskbin                      sbin/restore
+LINK   ramdiskbin                      sbin/route
+LINK   ramdiskbin                      sbin/rrestore
+LINK   ramdiskbin                      sbin/shutdown
+LINK   ramdiskbin                      sbin/slattach
+LINK   ramdiskbin                      sbin/swapctl
+LINK   ramdiskbin                      sbin/umount
+ifelse(MACHINE,i386,   LINK    ramdiskbin      sbin/fdisk)
+ifelse(MACHINE,i386,   LINK    ramdiskbin      sbin/mbrlabel)
+LINK   ramdiskbin                      usr/libexec/lfs_cleanerd
+LINK   ramdiskbin                      usr/bin/chgrp
+LINK   ramdiskbin                      usr/bin/ftp
+LINK   ramdiskbin                      usr/bin/gunzip
+LINK   ramdiskbin                      usr/bin/gzcat
+LINK   ramdiskbin                      usr/bin/gzip
+LINK   ramdiskbin                      usr/bin/less
+LINK   ramdiskbin                      usr/bin/more
+LINK   ramdiskbin                      usr/bin/sed
+LINK   ramdiskbin                      usr/bin/tar
+LINK   ramdiskbin                      usr/bin/tip
+LINK   ramdiskbin                      usr/mdec/installboot
+LINK   ramdiskbin                      usr/sbin/chown
+LINK   ramdiskbin                      usr/sbin/chroot
+ifelse(MACHINE,i386,   LINK    ramdiskbin      usr/sbin/bad144)
+ifelse(MACHINE,sparc64,        LINK    ramdiskbin      usr/sbin/chat)
+ifelse(MACHINE,sparc64,        LINK    ramdiskbin      usr/sbin/pppd)
+ifelse(MACHINE,sparc64,        LINK    ramdiskbin      usr/bin/getopt)
+ifelse(MACHINE,sparc64,        LINK    ramdiskbin      sbin/sysctl)
+SPECIAL        /bin/rm ramdiskbin
+
+# various files that we need in /etc for the install
+COPY   SRCROOT/etc/group               etc/group
+COPY   SRCROOT/etc/master.passwd       etc/master.passwd
+COPY   SRCROOT/etc/protocols   etc/protocols
+COPY   SRCROOT/etc/services    etc/services
+COPY   SRCROOT/etc/netconfig   etc/netconfig
+
+SPECIAL        pwd_mkdb -p -d ./ etc/master.passwd
+SPECIAL /bin/rm etc/spwd.db
+SPECIAL /bin/rm etc/pwd.db
+
+# copy the MAKEDEV script and make some devices
+COPY   SRCROOT/etc/etc.MACHINE/MAKEDEV dev/MAKEDEV
+SPECIAL        cd dev; sh MAKEDEV ramdisk
+SPECIAL        /bin/rm dev/MAKEDEV
+
+# we need the boot block in /usr/mdec + the arch specific extras
+ifelse(MACHINE,sparc, COPY ${DESTDIR}/usr/mdec/boot usr/mdec/boot)
+ifelse(MACHINE,sparc, COPY ${DESTDIR}/usr/mdec/bootxx usr/mdec/bootxx)



Home | Main Index | Thread Index | Old Index