blob: 53c19d6d19293938b451c237e244d21bbb9e2775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#
# $NetBSD: Make.fsimage,v 1.2 1995/10/13 16:38:26 gwr Exp $
#
# TOP is assumed to be defined by Makefile including this one.
# These will be defined by it too:
IMAGE?= xxx-${REV}
CBIN?= xxx-crunched
TREE?= ${.CURDIR}/${CBIN}.tree
LISTS?= ${.CURDIR}/${CBIN}.list
MOUNT_POINT?= /mnt
DISKTYPE?= xxx-disktype
BDEV?= /dev/rd0
CDEV?= /dev/rd0
IMAGE_DEPS?= ${CBIN}
CLEANFILES+= ${IMAGE}.fs
# These are all the parameters for the root fs:
NBLKS?= 512
# args: old fmt, minfree, opt, ...
NEWFSARGS?= -O -m 0 -o space
do_mount:
-newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
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}
|