Build a tar file of the ramdisk.fs suitable for installing on an NFS

server for diskless installs on machines that can't netboot a kernel
with a full ramdisk.
This commit is contained in:
simonb 1999-04-16 14:12:14 +00:00
parent cd6eaa20b1
commit 895e3323a5
1 changed files with 5 additions and 1 deletions

View File

@ -1,10 +1,11 @@
# $NetBSD: Makefile,v 1.2 1999/03/04 20:32:20 wrstuden Exp $
# $NetBSD: Makefile,v 1.3 1999/04/16 14:12:14 simonb Exp $
TOP?= ${.CURDIR}/..
ARCHDIR?= ${.CURDIR}/../../${MACHINE}/miniroot
.include "${TOP}/Makefile.inc"
IMAGE= ramdisk.fs
DISKIMAGE= diskimage.tgz
CBIN= ramdiskbin
#CSIZE?= 6144
@ -36,6 +37,9 @@ all: ${CBIN}
@echo ""
@df -i ${MOUNT_POINT}
@echo ""
@echo Building diskimage tar file...
tar cf - -C ${MOUNT_POINT} . | gzip -9 > ${DISKIMAGE}
@echo ""
umount ${MOUNT_POINT}
vnconfig -u ${VND_CDEV}