makeroot: zero out subsecond component of time= keywords

They are currently not supported by makefs(1).

PR:		194703
Reviewed by:	brooks
Approved by:	re (gjb)
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D6925
This commit is contained in:
Ed Maste 2016-06-23 19:19:44 +00:00
parent 5fafcca757
commit 948c30e565

View File

@ -238,5 +238,9 @@ if [ -n "${SIZE}" ]; then
SIZEFLAG="-s ${SIZE}"
fi
# Zero out subsecond component of time= keywords as they are currently not
# supported by makefs
sed -i '' -E 's/(time=[0-9]*)\.[0-9]*/\1.0/' ${manifest}
cd ${BSDROOT}; makefs ${DUPFLAG} -N ${DBDIR} ${SIZEFLAG} ${BFLAG} \
-t ffs ${LABELFLAG} -f 256 ${IMGFILE} ${manifest}