- add more i-nodes to ramdisk image

- make ramdisk/list work again with object directories
- make OS revision part of the images file names (like miniroot).
This commit is contained in:
pk 1999-04-08 21:17:14 +00:00
parent d55756227f
commit c672e5ca96
3 changed files with 12 additions and 14 deletions

View File

@ -1,11 +1,10 @@
# $NetBSD: Makefile,v 1.10 1999/03/04 20:32:20 wrstuden Exp $
# $NetBSD: Makefile,v 1.11 1999/04/08 21:17:14 pk Exp $
TOP= ${.CURDIR}/..
MINIROOT= ${.CURDIR}/../../miniroot
.include "${TOP}/Makefile.inc"
IMAGE= boot${REV}.fs
KERN= ${TOP}/../../sys/arch/sparc/compile/INSTALL/netbsd
MOUNT_POINT?= /mnt
@ -16,14 +15,13 @@ VND_CDEV= /dev/${VND}c
VND_CRDEV= /dev/r${VND}c
FD?= fd0
FD_RDEV= /dev/r${FD}a
IMAGE?= xxx.fs
KERN?= netbsd-xxx
IMAGE?= boot-${REV}.fs
MDEC= ${DESTDIR}/usr/mdec
LISTS= ${.CURDIR}/list
RAMDISK!= cd ${TOP}/ramdisk/; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk.fs\n" | \
${MAKE} -s -f-
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/ramdisk-${REV}.fs\n" |\
${MAKE} -s -f-
DISKTYPE= floppy
@ -32,7 +30,7 @@ DISKTYPE= floppy
# 6144 1147k, 189 inodes free
# 16384 1159k, 93 inodes free
# 204800 1167k, 29 inodes free
INO_BYTES?= 204800
INO_BYTES= 204800
CLEANFILES+= netbsd.ram.gz netbsd.tmp

View File

@ -1,10 +1,9 @@
# $NetBSD: Makefile,v 1.8 1999/03/04 20:32:20 wrstuden Exp $
# $NetBSD: Makefile,v 1.9 1999/04/08 21:17:14 pk Exp $
TOP= ${.CURDIR}/..
MINIROOT= ${.CURDIR}/../../miniroot
.include "${TOP}/Makefile.inc"
IMAGE= ramdisk.fs
CBIN= ramdiskbin
@ -15,8 +14,8 @@ VND_DEV= /dev/${VND}a
VND_RDEV= /dev/r${VND}a
VND_CDEV= /dev/${VND}c
VND_CRDEV= /dev/r${VND}c
IMAGE?= xxx.fs
MDEC= ${DESTDIR}/usr/mdec
IMAGE?= ramdisk-${REV}.fs
LISTS= list
CRUNCHCONF= ${CBIN}.conf
@ -25,13 +24,14 @@ MTREE= mtree.conf
SIZE= 1656k
DISKTYPE= instfs
GEOM= 512/18/2/92
INO_BYTES= 4096
all: ${CBIN}
dd if=/dev/zero of=${IMAGE} bs=${SIZE} count=1
vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
disklabel -rw ${VND_CDEV} ${DISKTYPE}
disklabel -W ${VND_CDEV}
newfs -B be -m 0 -o space -i 8192 -c 92 ${VND_RDEV}
newfs -B be -m 0 -o space -i ${INO_BYTES} -c 92 ${VND_RDEV}
mount ${VND_DEV} ${MOUNT_POINT}
mtree -def ${.CURDIR}/${MTREE} -p ${MOUNT_POINT}/ -u
TOPDIR=${TOP} CURDIR=${MINIROOT} REALCURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \

View File

@ -1,4 +1,4 @@
# $NetBSD: list,v 1.7 1999/01/10 13:39:45 mrg Exp $
# $NetBSD: list,v 1.8 1999/04/08 21:17:14 pk Exp $
# copy the crunched binary, link to it, and kill it
COPY ${OBJDIR}/ramdiskbin instbin
@ -93,7 +93,7 @@ COPY ${TOPDIR}/../../etc/services etc/services
SPECIAL sed -e 's/^\([^:]*:[^:]*:[^:]*:[^:]*:\):0:0:/\1/' ${TOPDIR}/../../etc/master.passwd > etc/passwd
# the disktab explanation file
COPY disktab.preinstall etc/disktab.preinstall
COPY ${REALCURDIR}/disktab.preinstall etc/disktab.preinstall
# Minimize use of MFS
SYMLINK /tmp var/tmp
@ -106,7 +106,7 @@ SYMLINK /tmp/resolv.conf.shadow etc/resolv.conf
SYMLINK /tmp/hosts etc/hosts
# and the installation tools
COPY dot.profile .profile
COPY ${REALCURDIR}/dot.profile .profile
COPY ${TOPDIR}/install.md install.md
COPY ${TOPDIR}/../miniroot/install.sh install
COPY ${TOPDIR}/../miniroot/upgrade.sh upgrade