Fix previous, use sed to fix up the set.${set} line in non-METAFILE mode

This commit is contained in:
martin 2024-01-30 10:24:39 +00:00
parent d2d5ef5165
commit 2cf65fcd1b
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/bin/sh
#
# $NetBSD: maketars,v 1.99 2024/01/29 15:56:49 martin Exp $
# $NetBSD: maketars,v 1.100 2024/01/30 10:24:39 martin Exp $
#
# Make release tar files for some or all lists. Usage:
# maketars [-b] [-x] [-i installdir] [-a arch] [-m machine] [-s setsdir]
@ -199,9 +199,10 @@ for setname in ${lists}; do
# because we depend on it as an input.
else
${MTREE} -c -p "${dest}" -k all \
-R "${skipkeys},set.${setname}" \
-R "${skipkeys}" \
-N "${etcdir}" -O "${SDIR}/flist.${setname}" \
| ${MTREE} -C -k all -N "${etcdir}" \
| ${SED} -e "s:^./etc/mtree/set.${setname}.*\$:./etc/mtree/set.${setname} type=file mode=0444:" \
> "${setlistdir}/set.${setname}"
fi
done