Re: test of makefs in kfreebsd d-i
Luca Favatella dixit:
>* the patch against current kfreebsd d-i svn
Try something like this:
IMGSZ?= 20m
define mkfs.ufs1
fs=$$(mktemp -d) ; \
cp -a $(TREE)/* $${fs}/ ; \
tmp=$$(mktemp -d) ; \
makefs -t ffs -s ${IMGSZ} -o minfree=0 $${tmp}/ufs $${fs}/ ; \
mv $${tmp}/ufs
endef
define mkfs.ufs2
fs=$$(mktemp -d) ; \
cp -a $(TREE)/* $${fs}/ ; \
tmp=$$(mktemp -d) ; \
makefs -t ffs -s ${IMGSZ} -o minfree=0,version=2 $${tmp}/ufs $${fs}/ ; \
mv $${tmp}/ufs
endef
Afterwards adjust the IMGSZ to be just a little more than
what's actually needed.
Why do you copy ${TREE}/* to a temporary $$fs/ first, anyway?
You can run it directly on ${TREE} I'd say:
define mkfs.ufs1
sh -c 'makefs -t ffs -s ${IMGSZ} -o minfree=0,version=1 $$0 ${TREE}'
endef
Again, untested.
//mirabilos
--
“It is inappropriate to require that a time represented as
seconds since the Epoch precisely represent the number of
seconds between the referenced time and the Epoch.”
-- IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2
Reply to: