summaryrefslogtreecommitdiff
path: root/distrib/sparc64/ramdisk
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-09-20 01:19:33 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-09-20 01:19:33 +0000
commit39e804edc0f9f78d3f659a28156548c58f606932 (patch)
treef7c6a4223b33d1b6b2e8e4a252589c7ef141926f /distrib/sparc64/ramdisk
parent3fe6c768c5d40a154fecaf9a524eb404f4a9615c (diff)
Get this closer to working (mostly borrowed from macppc).
Still dies with: warning: /dev/console error 20 panic: init died (signal 6, exit 0)
Diffstat (limited to 'distrib/sparc64/ramdisk')
-rw-r--r--distrib/sparc64/ramdisk/Makefile5
-rw-r--r--distrib/sparc64/ramdisk/install.md1
-rw-r--r--distrib/sparc64/ramdisk/install.sub1
-rw-r--r--distrib/sparc64/ramdisk/list115
4 files changed, 94 insertions, 28 deletions
diff --git a/distrib/sparc64/ramdisk/Makefile b/distrib/sparc64/ramdisk/Makefile
index bfbae0aeb4d..d560b4d9033 100644
--- a/distrib/sparc64/ramdisk/Makefile
+++ b/distrib/sparc64/ramdisk/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.3 2001/09/19 16:05:42 jason Exp $
+# $OpenBSD: Makefile,v 1.4 2001/09/20 01:19:32 jason Exp $
TOP= ${.CURDIR}/..
@@ -81,7 +81,8 @@ ${CBIN}: ${CBIN}.mk ${CBIN}.cache ${CBIN}.c
do_files:
mtree -def ${MTREE} -p ${MOUNT_POINT}/ -u
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
- REV=${REV} TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh -d ${LISTS}
+ REV=${REV} ARCHDIR=${.CURDIR}/.. TARGDIR=${MOUNT_POINT} \
+ sh ${TOP}/runlist.sh ${LISTS}
clean cleandir:
/bin/rm -f core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \
diff --git a/distrib/sparc64/ramdisk/install.md b/distrib/sparc64/ramdisk/install.md
new file mode 100644
index 00000000000..2cb6771b2f5
--- /dev/null
+++ b/distrib/sparc64/ramdisk/install.md
@@ -0,0 +1 @@
+SPECIAL sed -e /^[ ]*#[ ].*$/d -e /^[ ]*#$/d -e s/^ARCH=ARCH$/ARCH=sparc64/
diff --git a/distrib/sparc64/ramdisk/install.sub b/distrib/sparc64/ramdisk/install.sub
new file mode 100644
index 00000000000..991ad6038be
--- /dev/null
+++ b/distrib/sparc64/ramdisk/install.sub
@@ -0,0 +1 @@
+SPECIAL sed /^VERSION=/s/=.*/=30/
diff --git a/distrib/sparc64/ramdisk/list b/distrib/sparc64/ramdisk/list
index fbc0ce4044d..b81e1264ec1 100644
--- a/distrib/sparc64/ramdisk/list
+++ b/distrib/sparc64/ramdisk/list
@@ -1,39 +1,102 @@
-# $OpenBSD: list,v 1.1 2001/09/18 14:27:32 jason Exp $
-# $NetBSD: list,v 1.2.4.2 1996/06/26 19:25:00 pk Exp $
+# $OpenBSD: list,v 1.2 2001/09/20 01:19:32 jason Exp $
-# Sparc extra's
-LINK instbin sbin/disklabel
-
-SYMLINK ../../instbin usr/bin/basename
-SYMLINK ../../instbin usr/bin/grep usr/bin/egrep usr/bin/fgrep
-SYMLINK ../../instbin usr/bin/rsh
-SYMLINK ../../instbin usr/bin/tset usr/bin/reset
-SYMLINK ../../instbin usr/bin/less usr/bin/more
-SYMLINK ../../instbin usr/sbin/installboot
+SRCDIRS distrib/special
+SRCDIRS usr.bin bin sbin usr.sbin gnu/usr.bin
+#SRCDIRS usr.bin/vi
-SRCDIRS sys/arch/sparc/stand
-
-# Minimize use of MFS
-SYMLINK /tmp var/tmp
+# copy the crunched binary, link to it, and kill it
+COPY ${OBJDIR}/instbin instbin
+LINK instbin bin/cat
+LINK instbin bin/chmod bin/chgrp sbin/chown
+LINK instbin bin/cp
+LINK instbin bin/dd
+LINK instbin bin/df
+LINK instbin bin/ed
+LINK instbin bin/expr
+LINK instbin bin/hostname
+LINK instbin bin/ln
+LINK instbin bin/ls
+LINK instbin bin/mkdir
+LINK instbin bin/mt bin/eject
+LINK instbin bin/mv
+LINK instbin bin/pax bin/tar bin/cpio
+LINK instbin bin/rm
+LINK instbin bin/ksh bin/sh
+ARGVLINK ksh -sh
+LINK instbin bin/sleep
+LINK instbin bin/stty
+LINK instbin bin/sync
+LINK instbin bin/test bin/[
+LINK instbin sbin/disklabel
+LINK instbin sbin/ancontrol
+LINK instbin sbin/pdisk
+LINK instbin sbin/fdisk
+LINK instbin sbin/fsck
+LINK instbin sbin/fsck_ffs
+LINK instbin sbin/reboot sbin/halt
+LINK instbin sbin/ifconfig
+LINK instbin sbin/init
+LINK instbin sbin/dhclient
+LINK instbin sbin/dmesg
+LINK instbin sbin/mknod
+LINK instbin sbin/mount
+LINK instbin sbin/mount_cd9660
+LINK instbin sbin/mount_ffs
+LINK instbin sbin/mount_msdos
+LINK instbin sbin/mount_nfs
+LINK instbin sbin/newfs
+LINK instbin sbin/newfs_msdos
+LINK instbin sbin/ping
+LINK instbin sbin/restore
+LINK instbin sbin/route
+#LINK instbin sbin/slattach
+LINK instbin sbin/scsi
+LINK instbin sbin/umount
+LINK instbin sbin/wicontrol
+LINK instbin usr/bin/grep usr/bin/fgrep usr/bin/egrep
+LINK instbin usr/bin/mg
+LINK instbin usr/bin/ftp
+LINK instbin usr/bin/gzip usr/bin/gunzip usr/bin/gzcat
+LINK instbin usr/bin/less usr/bin/more
+LINK instbin usr/bin/rsh
+LINK instbin usr/bin/sed
+LINK instbin usr/bin/sort
+LINK instbin usr/bin/tip
+LINK instbin usr/sbin/chat
+#SYMLINK ../../instbin usr/bin/build usr/bin/vi
# copy the MAKEDEV script and make some devices
-COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
+COPY ${DESTDIR}/dev/MAKEDEV dev/MAKEDEV
SPECIAL cd dev; sh MAKEDEV ramdisk
-# we need the contents of /usr/mdec (but not boot or binstall)
-COPYDIR ${DESTDIR}/usr/mdec usr/mdec
-SPECIAL rm -f usr/mdec/binstall usr/mdec/installboot
-
-# and a few useful bits of the termcap file (512K and still growing 8-)
-SPECIAL tic -C ${CURDIR}/../../../share/termtypes/termtypes.master | sed -n -e 's,/usr/share/lib/tabset,/usr/share/tabset,g' -e 's,/usr/lib/tabset,/usr/share/tabset,g' -e '/^dumb|/,/:[ ]*$/p' -e '/^unknown|/,/:[ ]*$/p' -e '/^sun.*|/,/:[ ]*$/p' -e '/^vt.*|/,/:[ ]*$/p' -e '/^pc3|/,/:[ ]*$/p' -e '/^pcvt.*|/,/:[ ]*$/p' > usr/share/misc/termcap
+# we need the contents of /usr/mdec
+COPY ${DESTDIR}/usr/mdec/ofwboot usr/mdec/ofwboot
+COPY ${DESTDIR}/usr/mdec/mbr usr/mdec/mbr
+COPY ${DESTDIR}/usr/mdec/msdos1mb.gz usr/mdec/msdos1mb.gz
# various files that we need in /etc for the install
-COPY ${DESTDIR}/etc/disktab etc/disktab.shadow
-SYMLINK /tmp/disktab.shadow etc/disktab
+COPY ${DESTDIR}/etc/group etc/group
+COPY ${DESTDIR}/etc/protocols etc/protocols
+COPY ${DESTDIR}/etc/services etc/services
+COPY ${DESTDIR}/etc/spwd.db etc/spwd.db
+COPY ${DESTDIR}/etc/disktab etc/disktab
+SYMLINK /tmp/disktab.shadow etc/disktab
SYMLINK /tmp/fstab.shadow etc/fstab
SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
SYMLINK /tmp/hosts etc/hosts
+# dhcp things
+COPY ${DESTDIR}/sbin/dhclient-script sbin/dhclient-script
+
+# and the common installation tools
+COPY ${TOPDIR}/termcap.vt usr/share/misc/termcap
+#COPY ${DESTDIR}/usr/share/misc/scsi_modes usr/share/misc/scsi_modes
+
# and the installation tools
-COPY ${ARCHDIR}/../ramdisk/dot.profile .profile
-SPECIAL sed -e '/^#[ ].*$/d' -e "s/^ARCH=ARCH$/ARCH=`arch -s`/" < ${ARCHDIR}/../install.md > install.md
+COPY dot.profile .profile
+SPECIAL sed -e '/^[ ]*#[ ].*$/d' -e '/^[ ]*#$/d' -e "s/^ARCH=ARCH$/ARCH=`arch -s`/" < ${CURDIR}/install.md > install.md
+COPY ${CURDIR}/../../miniroot/install.sh install
+COPY ${CURDIR}/../../miniroot/upgrade.sh upgrade
+#SPECIAL sed "/^VERSION=/s/=.*/=${REV}/" < ${CURDIR}/install.sub > install.sub
+SPECIAL sed "/^VERSION=/s/=.*/=${REV}/" < ${CURDIR}/../../miniroot/install.sub > install.sub
+SPECIAL chmod 755 install upgrade