1995-10-09 02:07:44 +03:00
|
|
|
#
|
2000-01-21 15:32:54 +03:00
|
|
|
# $NetBSD: Make.fsimage,v 1.5 2000/01/21 12:32:57 tsutsui Exp $
|
1995-10-09 02:07:44 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
# TOP is assumed to be defined by Makefile including this one.
|
|
|
|
# These will be defined by it too:
|
|
|
|
|
1995-10-13 19:38:20 +03:00
|
|
|
IMAGE?= xxx-${REV}
|
1995-10-09 02:07:44 +03:00
|
|
|
CBIN?= xxx-crunched
|
|
|
|
|
|
|
|
TREE?= ${.CURDIR}/${CBIN}.tree
|
|
|
|
LISTS?= ${.CURDIR}/${CBIN}.list
|
|
|
|
|
|
|
|
MOUNT_POINT?= /mnt
|
|
|
|
DISKTYPE?= xxx-disktype
|
2000-01-21 15:32:54 +03:00
|
|
|
BDEV?= /dev/md0a
|
|
|
|
CDEV?= /dev/md0a
|
1995-10-09 02:07:44 +03:00
|
|
|
|
|
|
|
IMAGE_DEPS?= ${CBIN}
|
1995-10-13 19:38:20 +03:00
|
|
|
CLEANFILES+= ${IMAGE}.fs
|
1995-10-09 02:07:44 +03:00
|
|
|
|
|
|
|
# These are all the parameters for the root fs:
|
|
|
|
NBLKS?= 512
|
|
|
|
# args: old fmt, minfree, opt, ...
|
|
|
|
NEWFSARGS?= -O -m 0 -o space
|
|
|
|
|
|
|
|
do_mount:
|
1999-03-04 23:32:18 +03:00
|
|
|
-newfs -B be ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
|
1995-10-09 02:07:44 +03:00
|
|
|
mount ${BDEV} ${MOUNT_POINT}
|
|
|
|
|
|
|
|
do_files:
|
|
|
|
mtree -def ${TREE} -p ${MOUNT_POINT}/ -u
|
|
|
|
TOPDIR=${TOP} CURDIR=${.CURDIR} \
|
|
|
|
OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \
|
|
|
|
sh ${TOP}/common/RunList.sh ${LISTS}
|
|
|
|
|
|
|
|
do_umount:
|
|
|
|
@echo ""
|
|
|
|
@df -i ${MOUNT_POINT}
|
|
|
|
@echo ""
|
|
|
|
-umount ${MOUNT_POINT}
|
|
|
|
|