Bring up to date and save some more space (as ever).

This commit is contained in:
abs 2000-08-22 14:11:45 +00:00
parent 911ac86efa
commit 863e9c9128
7 changed files with 32 additions and 75 deletions

View File

@ -1,10 +1,11 @@
# $NetBSD: Makefile,v 1.7 2000/05/02 16:06:55 sjg Exp $
# $NetBSD: Makefile,v 1.8 2000/08/22 14:11:45 abs Exp $
TOP= ${.CURDIR}/..
MINIROOT= ${TOP}/../miniroot
HACKSRC= ${TOP}/../utils/libhack
SRCROOT= ${TOP}/../..
WARNS=1
COPTS+=-Os
.if ${MACHINE_ARCH} == "i386"
RAW_PART= d
@ -19,7 +20,7 @@ FS_END= be
FS_END= le
.endif
AUXDEPENDS= dot.profile disktab.preinstall termcap.mini \
AUXDEPENDS= dot.profile termcap.mini \
dist/base_obsolete dist/comp_obsolete \
dist/games_obsolete dist/man_obsolete dist/misc_obsolete \
dist/secr_obsolete dist/xbase_obsolete dist/xserver_obsolete
@ -35,7 +36,7 @@ VND_RDEV= /dev/r${VND}a
VND_CDEV= /dev/${VND}${RAW_PART}
VND_CRDEV= /dev/r${VND}${RAW_PART}
IMAGE?= syramdisk.fs
CSIZE?= 3312
CSIZE?= 3584
MDEC= ${DESTDIR}/usr/mdec
LISTS= list
@ -48,7 +49,7 @@ all: ${CBIN} ${AUXDEPENDS} ${MTREE} ${LISTS} dot.profile
dd if=/dev/zero of=${IMAGE} count=${CSIZE}
vnconfig -v -c ${VND_CDEV} ${IMAGE}
disklabel -f ${.CURDIR}/disktab -rw ${VND_CDEV} ${DISKTYPE}
newfs -B ${FS_END} -m 0 -o space -i 5120 -c 80 ${VND_RDEV} ${DISKTYPE}
newfs -B ${FS_END} -m 0 -o space -i 5120 -c 56 ${VND_RDEV} ${DISKTYPE}
mount ${VND_DEV} ${MOUNT_POINT}
mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \

View File

@ -1,4 +1,4 @@
# $NetBSD: disktab,v 1.1 1999/11/09 15:48:02 mycroft Exp $
# $NetBSD: disktab,v 1.2 2000/08/22 14:11:45 abs Exp $
#
# Disk geometry and partition layout tables.
# Key:
@ -31,6 +31,6 @@
#
floppyinstfs|NetBSD floppy install filesystem:\
:ty=floppy:se#512:nt#1:rm#300:ns#64:nc#64:\
:pa#3312:oa#0:ba#4096:fa#512:ta=4.2BSD:\
:pc#3312:oc#0:
:ty=floppy:se#512:nt#1:rm#300:ns#64:nc#56:\
:pa#3584:oa#0:ba#4096:fa#512:ta=4.2BSD:\
:pc#3584:oc#0:

View File

@ -1,31 +0,0 @@
# $NetBSD: disktab.preinstall,v 1.1 1999/04/30 05:09:44 abs 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)
#

View File

@ -1,4 +1,4 @@
# $NetBSD: dot.profile.m4,v 1.4 2000/06/14 22:52:47 cgd Exp $
# $NetBSD: dot.profile.m4,v 1.5 2000/08/22 14:11:45 abs Exp $
#
# Copyright (c) 1997 Perry E. Metzger
# Copyright (c) 1994 Christopher G. Demetriou
@ -65,15 +65,9 @@ if [ "X${DONEPROFILE}" = "X" ]; then
TERM=$ans
fi
# run update, so that installed software is written as it goes.
update
# mount the ramdisk read write
mount -u $ROOTDEV /
# mount the kern_fs so that we can examine the dmesg state
mount -t kernfs /kern /kern
# run the installation or upgrade script.
sysinst
fi

View File

@ -1,4 +1,4 @@
# $NetBSD: list.m4,v 1.5 2000/03/15 12:19:16 soren Exp $
# $NetBSD: list.m4,v 1.6 2000/08/22 14:11:46 abs Exp $
# copy the crunched binary, link to it, and kill it
COPY ${OBJDIR}/ramdiskbin ramdiskbin
@ -24,19 +24,17 @@ LINK ramdiskbin bin/test
LINK ramdiskbin bin/[
LINK ramdiskbin sbin/cd9660
LINK ramdiskbin sbin/disklabel
LINK ramdiskbin sbin/dmesg
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_kernfs
LINK ramdiskbin sbin/mount_msdos
LINK ramdiskbin sbin/mount_nfs
LINK ramdiskbin sbin/msdos
@ -53,6 +51,8 @@ LINK ramdiskbin sbin/swapctl
LINK ramdiskbin sbin/umount
ifelse(MACHINE,i386, LINK ramdiskbin sbin/fdisk)
ifelse(MACHINE,i386, LINK ramdiskbin sbin/mbrlabel)
ifelse(MACHINE,i386, LINK ramdiskbin sbin/mount_ext2fs)
ifelse(MACHINE,sparc, LINK ramdiskbin sbin/sysctl)
SYMLINK /bin/cat usr/bin/chgrp
SYMLINK /bin/cat usr/bin/ftp
SYMLINK /bin/cat usr/bin/gunzip
@ -68,14 +68,14 @@ SYMLINK /bin/cat usr/sbin/chown
SYMLINK /bin/cat usr/sbin/chroot
ifelse(MACHINE,i386, SYMLINK /bin/cat usr/sbin/bad144)
ifelse(MACHINE,sparc, SYMLINK /bin/cat usr/bin/getopt)
ifelse(MACHINE,sparc, SYMLINK /bin/cat 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
COPYSTRIPCOMMENTS SRCROOT/etc/netconfig etc/netconfig
COPYSTRIPCOMMENTS SRCROOT/etc/protocols etc/protocols
COPYSTRIPCOMMENTS SRCROOT/etc/services etc/services
SPECIAL pwd_mkdb -p -d ./ etc/master.passwd
SPECIAL /bin/rm etc/spwd.db
@ -97,9 +97,6 @@ ifelse(MACHINE,i386, COPY ${DESTDIR}/usr/mdec/mbr_bootsel usr/mdec/mbr_bootsel)
# and the common installation tools
COPY termcap.mini usr/share/misc/termcap
# the disktab explanation file
COPY disktab.preinstall etc/disktab.preinstall
#the lists of obsolete files used by sysinst
COPY dist/base_obsolete dist/base_obsolete
COPY dist/comp_obsolete dist/comp_obsolete

View File

@ -1,4 +1,4 @@
# $NetBSD: mtree.conf,v 1.1 1999/04/30 05:09:44 abs Exp $
# $NetBSD: mtree.conf,v 1.2 2000/08/22 14:11:46 abs Exp $
/set type=dir uname=root gname=wheel mode=0755
# .
@ -34,11 +34,6 @@ mnt2
# ./mnt2
..
# ./kern
kern
# ./kern
..
# ./sbin
sbin
# ./sbin

View File

@ -1,33 +1,35 @@
# $NetBSD: ramdiskbin.m4,v 1.3 2000/02/07 11:09:59 pk Exp $
# $NetBSD: ramdiskbin.m4,v 1.4 2000/08/22 14:11:46 abs Exp $
#
# ramdiskbin.conf - unified binary for the install ramdisk
#
srcdirs bin sbin usr.bin/less usr.bin usr.sbin gnu/usr.bin sys/arch/MACHINE/stand
progs cat chmod chown chroot cp dd df disklabel ed
progs fsck fsck_ffs ftp gzip ifconfig init installboot less
progs ln ls mkdir mknod
progs mount mount_cd9660 mount_ext2fs mount_ffs mount_msdos
progs mount_nfs mount_kernfs mt mv newfs ping pwd reboot restore rm
progs route sed sh shutdown slattach stty swapctl sync test
progs tip umount
progs sysinst pax
ifelse(MACHINE,i386,progs bad144 fdisk mbrlabel)
ifelse(MACHINE,sparc,progs sysctl getopt)
progs cat chmod chown chroot cp dd df disklabel dmesg ed
progs fsck fsck_ffs ftp gzip ifconfig init installboot
progs less ln ls mkdir mknod mount mount_cd9660
progs mount_ffs mount_msdos mount_nfs mt mv newfs pax
progs ping pwd reboot restore rm route sed sh shutdown
progs slattach swapctl sync sysinst test stty tip umount
ifelse(MACHINE,i386,progs bad144 fdisk mbrlabel mount_ext2fs)
ifelse(MACHINE,sparc,progs getopt sysctl) # Used by binstall
special sysinst srcdir distrib/utils/sysinst/arch/MACHINE
special init srcdir distrib/utils/init_s
special dd srcdir distrib/utils/x_dd
special dmesg srcdir distrib/utils/x_dmesg
special ed srcdir distrib/utils/x_ed
special ftp srcdir distrib/utils/x_ftp
special ifconfig srcdir distrib/utils/x_ifconfig
special ping srcdir distrib/utils/x_ping
special route srcdir distrib/utils/x_route
special sh srcdir distrib/utils/x_sh
special ping srcdir distrib/utils/x_ping
# "special" gzip is actually larger assuming nothing else uses -lz..
#special gzip srcdir distrib/utils/x_gzip
#x_dhclient, x_netstat, x_ping6 not current used
ln pax tar
ln chown chgrp
@ -39,7 +41,6 @@ ln mount_cd9660 cd9660
ln mount_ffs ffs
ln mount_msdos msdos
ln mount_nfs nfs
ln mount_kernfs kernfs
ln reboot halt
ln restore rrestore