summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2002-04-26 17:55:27 +0000
committerru <ru@FreeBSD.org>2002-04-26 17:55:27 +0000
commit8ad1c2807b6a01430c9993819b33676991a90da3 (patch)
tree5e727666c21a8e673dedcd5adfb9a89712365fbb /release
parent7d2926215db2c27174d1971f7ff00e4dd4bdb3da (diff)
downloadFreeBSD-src-8ad1c2807b6a01430c9993819b33676991a90da3.zip
FreeBSD-src-8ad1c2807b6a01430c9993819b33676991a90da3.tar.gz
Milestone #1 in cross-arch make releases.
Do not install games and profiled libraries to the ${CHROOTDIR} with the initial installworld. Eliminate the need in the second installworld. For that, make sure _everything_ is built in the "world" environment, using the right tool chain. Added SUBDIR_OVERRIDE helper stuff to Makefile.inc1. Split the buildworld process into stages, and skip some stages when SUBDIR_OVERRIDE is set (used to build crypto, krb4, and krb5 dists). Added NO_MAKEDB_RUN knob to Makefile.inc1 to avoid running makewhatis(1) at the end of installworld (used when making crypto, krb4, and krb5 dists). In release/scripts/doFS.sh, ensure that the correct boot blocks are used. Moved the creation of the "crypto" dist from release.5 to release.2. In release.3 and doMFSKERN, build kernels in the "world" environment. KERNELS now means "additional" kernels, GENERIC is always built. Ensure we build crunched binaries in the "world" environment. Obfuscate release/Makefile some more (WMAKEENV) to achieve this. Inline createBOOTMFS target. Use already built GENERIC kernel modules to augment mfsfd's /stand/modules. GC doMODULES as such. Assorted fixes: Get rid of the "afterdistribute" target by moving the single use of it from sys/Makefile to etc/Makefile's "distribute". Makefile.inc1: apparently "etc" no longer needs to be last for "distribute" to succeed. gnu/usr.bin/perl/library/Makefile.inc: do not override the "install" and "distribute" targets, do it the "canonical" way. release/scripts/{man,cat}pages-make.sh: make sure Perl manpages and catpages appear in the right dists. Note that because Perl does not respect the MANBUILDCAT (and NOMAN), this results in a loss of /usr/share/perl/man/cat* empty directories. This will be fixed soon. Turn MAKE_KERBEROS4 into a plain boolean variable (if it is set it means "make KerberosIV"), as documented in the make.conf(5) manpage. Most of the userland makefiles did not test it for "YES" anyway. XXX Should specialized kerberized libpam versions be included into the krb4 and krb5 dists? (libpam.a would be incorrect anyway if both krb4 and krb5 dists were choosen.) Make sure "games" dist is made before "catpages", otherwise games catpages settle in the wrong dist. Fast build machine provided by: Igor Kucherenko <kivvy@sunbay.com>
Diffstat (limited to 'release')
-rw-r--r--release/Makefile185
-rwxr-xr-xrelease/scripts/catpages-make.sh5
-rw-r--r--release/scripts/doFS.sh7
-rwxr-xr-xrelease/scripts/manpages-make.sh5
4 files changed, 85 insertions, 117 deletions
diff --git a/release/Makefile b/release/Makefile
index 4795be4..ffbe74a 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -46,8 +46,6 @@ PORTSRELEASETAG?= ${AUXRELEASETAG}
.endif
.endif
-KERNCONF?=GENERIC
-
# If you want to pass flags to the world build such as -j X, use
# WORLD_FLAGS. Similarly, you can specify make flags for kernel
# builds via KERNEL_FLAGS.
@@ -129,11 +127,10 @@ COMPAT_DISTS?= compat1x compat20 compat21 compat22 compat3x compat4x
.else
COMPAT_DISTS?= compat4x
.endif
-OTHER_DISTS?= catpages manpages games proflibs dict info doc
+OTHER_DISTS?= games catpages manpages proflibs dict info doc
CRYPTO_DISTS?= crypto krb4 krb5
BASE_DISTS?= base
DISTRIBUTIONS?= ${BASE_DISTS} ${OTHER_DISTS} ${COMPAT_DISTS} ${CRYPTO_DISTS}
-KERNELS?= GENERIC
BOOT1= etc/defaults/rc.conf
@@ -185,6 +182,10 @@ BIGBOOTLABEL= minimum2
ZIPNSPLIT= gzip --no-name -9 -c | split -b 240640 -
+# Things that need to be recompiled with Kerberos support.
+K4PROGS!= cd ${.CURDIR}/../kerberosIV; ${MAKE} -V KPROGS
+K5PROGS!= cd ${.CURDIR}/../kerberos5; ${MAKE} -V KPROGS
+
# Things that need to be compiled without crypto support in releases
.if !defined(FIXCRYPTO)
FIXCRYPTO= bin/ed usr.sbin/ppp usr.sbin/pppd usr.sbin/tcpdump/tcpdump
@@ -244,6 +245,9 @@ MAKEREADMES= make readmes PORTSDIR=${CHROOTDIR}/usr/ports
MAKEREADMES= true
.endif
+WMAKEENV!= cd ${.CURDIR}/..; ${MAKE} -f Makefile.inc1 -V WMAKEENV
+WMAKE= ${WMAKEENV} ${MAKE}
+
rerelease release:
.if !defined(CHROOTDIR) || !defined(BUILDNAME) || !defined(CVSROOT)
@echo "To make a release you must set CHROOTDIR, BUILDNAME and CVSROOT" && false
@@ -263,13 +267,12 @@ rerelease release:
.endif
mkdir -p ${CHROOTDIR}
@echo ">>> make release started on `LC_ALL=C TZ=GMT date`"
- cd ${.CURDIR}/../etc && ${MAKE} distrib-dirs DESTDIR=${CHROOTDIR}
+ cd ${.CURDIR}/.. && ${MAKE} -DNOGAMES -DNOHTML -DNOINFO -DNOMAN \
+ -DNOPROFILE installworld DESTDIR=${CHROOTDIR}
cd ${.CURDIR}/../etc && ${MAKE} distribution DESTDIR=${CHROOTDIR}
if [ -f /etc/resolv.conf ]; then \
cp -p /etc/resolv.conf ${CHROOTDIR}/etc; \
fi
- cd ${.CURDIR}/.. && ${MAKE} -DNOHTML -DNOINFO -DNOMAN installworld \
- DESTDIR=${CHROOTDIR}
mkdir ${CHROOTDIR}/${BOOTSTRAPDIR}
for i in ${BOOTSTRAPUTILS} ; do \
cp -p ${CHROOTDIR}$$i ${CHROOTDIR}/${BOOTSTRAPDIR} ; \
@@ -316,7 +319,7 @@ rerelease release:
.if make(rerelease)
.if !defined(RELEASENOUPDATE)
.if !defined(RELEASETAG)
- cd ${CHROOTDIR}/usr/src && cvs -R -q update -P -d
+ cd ${CHROOTDIR}/usr/src && cvs -R -q update -P -d -A
.else
cd ${CHROOTDIR}/usr/src && cvs -R -q update -P -d -r ${RELEASETAG}
.endif
@@ -381,6 +384,9 @@ rerelease release:
.if defined(BOOT_CONFIG)
echo "export BOOT_CONFIG=\"${BOOT_CONFIG}\"">> ${CHROOTDIR}/mk
.endif
+.if defined(WORLD_FLAGS)
+ echo "export WORLD_FLAGS=\"${WORLD_FLAGS}\"" >> ${CHROOTDIR}/mk
+.endif
.if defined(KERNEL_FLAGS)
echo "export KERNEL_FLAGS=\"${KERNEL_FLAGS}\"" >> ${CHROOTDIR}/mk
.endif
@@ -393,11 +399,10 @@ rerelease release:
echo "if [ ! -f /tmp/.world_done ]; then" >> ${CHROOTDIR}/mk
echo " cd /usr/src" >> ${CHROOTDIR}/mk
.if make(release)
- echo " (cd etc; make distrib-dirs distribution)" >> ${CHROOTDIR}/mk
- echo " make ${WORLD_FLAGS} world && \\" >> ${CHROOTDIR}/mk
+ echo " make ${WORLD_FLAGS} buildworld && \\" >> ${CHROOTDIR}/mk
.endif
.if make(rerelease)
- echo " make ${WORLD_FLAGS} -DNOCLEAN world && \\" >> ${CHROOTDIR}/mk
+ echo " make ${WORLD_FLAGS} -DNOCLEAN buildworld && \\" >> ${CHROOTDIR}/mk
.endif
echo " touch /tmp/.world_done" >> ${CHROOTDIR}/mk
echo "fi" >> ${CHROOTDIR}/mk
@@ -420,11 +425,9 @@ release.1:
mkdir ${RD}
mkdir ${RD}/floppies
mkdir ${RD}/trees
- mkdir ${RD}/dists
mkdir ${RD}/kernels
for i in ${DISTRIBUTIONS} ; do \
mkdir ${RD}/trees/$$i && \
- mkdir ${RD}/dists/$$i && \
mtree -deU -f ${MTREEFILES}/BSD.root.dist \
-p ${RD}/trees/$$i > /dev/null && \
mtree -deU -f ${MTREEFILES}/BSD.usr.dist \
@@ -440,19 +443,22 @@ release.1:
release.2:
cd ${.CURDIR}/../etc && make distrib-dirs DESTDIR=${RD}/trees/base
cd ${.CURDIR}/.. && make distribworld DISTDIR=${RD}/trees
+ # Handle some grief caused by the munition braindeadness.
+ cd ${.CURDIR}/..; \
+ ${MAKE} ${WORLD_FLAGS} -DNO_MAKEDB_RUN -DNOCRYPT \
+ SUBDIR_OVERRIDE="${FIXCRYPTO}" \
+ buildworld distribworld DISTDIR=${RD}/trees
.if exists(${.CURDIR}/../kerberosIV) && exists(${.CURDIR}/../crypto) && !defined(NOKERBEROS)
- cd ${.CURDIR}/../kerberosIV && ( \
- make bootstrap &&\
- make obj all help-distribute DISTDIR=${RD}/trees &&\
- make kprog \
- )
+ cd ${.CURDIR}/..; \
+ ${MAKE} ${WORLD_FLAGS} -DNO_MAKEDB_RUN -DMAKE_KERBEROS4 \
+ SUBDIR_OVERRIDE="kerberosIV ${K4PROGS}" \
+ buildworld distribworld DISTDIR=${RD}/trees
.endif
.if exists(${.CURDIR}/../kerberos5) && exists(${.CURDIR}/../crypto) && !defined(NOKERBEROS)
- cd ${.CURDIR}/../kerberos5 && ( \
- make bootstrap &&\
- make obj all help-distribute DISTDIR=${RD}/trees &&\
- make kprog \
- )
+ cd ${.CURDIR}/..; \
+ ${MAKE} ${WORLD_FLAGS} -DNO_MAKEDB_RUN -DMAKE_KERBEROS5 \
+ SUBDIR_OVERRIDE="kerberos5 ${K5PROGS}" \
+ buildworld distribworld DISTDIR=${RD}/trees
.endif
-chflags -R noschg ${RD}/trees
touch release.2
@@ -460,23 +466,25 @@ release.2:
# Make and install the generic kernel(s).
release.3:
.for kernel in ${KERNELS}
- -chflags -R noschg ${RD}/kernels/${kernel}
- rm -rf ${RD}/kernels/${kernel}
- rm -rf ${.CURDIR}/../sys/${MACHINE}/compile/${kernel}
- cd ${.CURDIR} && ${MAKE} doSTDKERNEL KERNEL=${kernel} KODIR=/${kernel}
- rm -rf ${.CURDIR}/../sys/${MACHINE}/compile/${kernel}
- -mkdir ${RD}/trees/base/boot/${kernel}
- cp -p ${RD}/kernels/${kernel}/kernel ${RD}/trees/base/boot/${kernel}
+ cd ${.CURDIR}/..; \
+ ${MAKE} ${KERNEL_FLAGS} -DNO_WERROR -DNO_MODULES \
+ KERNCONF=${kernel} INSTKERNNAME=${kernel} kernel \
+ DESTDIR=${RD}/trees/base
.endfor
- # Install a standard boot kernel+modules
- mkdir -p ${RD}/trees/base/boot/kernel
- cp -Rp ${RD}/kernels/GENERIC/* ${RD}/trees/base/boot/kernel
+ # Install a standard boot kernel+modules.
+ cd ${.CURDIR}/..; \
+ ${MAKE} ${KERNEL_FLAGS} -DNO_WERROR \
+ kernel \
+ DESTDIR=${RD}/trees/base; \
+ cd ${.CURDIR}/..; \
+ ${MAKE} ${KERNEL_FLAGS} -DNO_MODULES \
+ reinstallkernel -DINSTALL_DEBUG \
+ DESTDIR=${RD}/trees/base
touch release.3
# Make and install the three crunched binaries which live on the floppies.
# You are not supposed to like this :-)
release.4:
- @mkdir -p /stand
rm -rf ${RD}/crunch
mkdir -p ${RD}/crunch
for j in ${CRUNCH_TARGETS} ; do \
@@ -486,7 +494,7 @@ release.4:
( ( [ -f ${.CURDIR}/${MACHINE}/$${j}_crunch.conf ] && \
crunchgen ${.CURDIR}/${MACHINE}/$${j}_crunch.conf ) || \
( crunchgen ${.CURDIR}/$${j}_crunch.conf ) ) && \
- ${MAKE} -f $${j}_crunch.mk subclean all ) && \
+ ${WMAKE} -f $${j}_crunch.mk subclean all ) && \
mv $${j}_crunch/$${j}_crunch ${RD}/crunch/$${j} && \
true || { rm -rf $${j}_crunch ; false ; } ; \
done
@@ -496,12 +504,6 @@ release.4:
# --==## Fix up the distributions. ##==--
#
release.5:
- # Handle some grief caused by the munition braindeadness.
- for i in ${FIXCRYPTO}; do \
- ( cd ${.CURDIR}/../$$i; \
- make -DNOCRYPT clean all distribute DISTDIR=${RD}/trees ) ; \
- done
-
# Create any "synthetic dists" now.
@for i in ${DISTRIBUTIONS}; do \
if [ -f ${.CURDIR}/scripts/$${i}-make.sh ]; then \
@@ -624,12 +626,12 @@ release.8:
${RD}/trees/base/etc/$$F > ${RD}/mfsfd/stand/etc/$$F ; \
done )
grep -E '^(ftp|nameserver|domain|sunrpc|cmd|nfsd)[^-\w]' \
- ${.CURDIR}/../etc/services | \
+ ${RD}/trees/base/etc/services | \
sed -e '/^#.*$$/d' -e 's/[:space:]*#.*$$//g' \
> ${RD}/mfsfd/stand/etc/services
ln ${RD}/mfsfd/stand/etc/services ${RD}/mfsfd/etc/services
ln ${RD}/mfsfd/stand/etc/netconfig ${RD}/mfsfd/etc/netconfig
- gzip -9c ${.CURDIR}/../COPYRIGHT > ${RD}/mfsfd/stand/help/COPYRIGHT.hlp.gz
+ gzip -9c ${RD}/trees/base/COPYRIGHT > ${RD}/mfsfd/stand/help/COPYRIGHT.hlp.gz
.if !defined(NODOC)
@for i in ${DIST_DOCS_ARCH_INDEP}; do \
gzip -9c ${RND}/${RELNOTES_LANG}/$$i/article.txt > ${RD}/mfsfd/stand/help/`echo $${i} | tr 'a-z' 'A-Z'`.TXT.gz; \
@@ -641,29 +643,31 @@ release.8:
.endif
-test -f ${.CURDIR}/install.cfg && cp ${.CURDIR}/install.cfg ${RD}/mfsfd
@mkdir -p ${RD}/mfsfd/boot
- @cp /boot/boot* ${RD}/mfsfd/boot
+ @cp ${RD}/trees/base/boot/boot* ${RD}/mfsfd/boot
.if ${MACHINE} == "i386"
- @cp /boot/mbr ${RD}/mfsfd/boot
+ @cp ${RD}/trees/base/boot/mbr ${RD}/mfsfd/boot
.endif
- @cp /boot/loader.help ${RD}/mfsfd/boot
- @cd ${.CURDIR} && ${MAKE} createBOOTMFS
+ @cp ${RD}/trees/base/boot/loader.help ${RD}/mfsfd/boot
+ @cd ${.CURDIR}/../sys/${MACHINE}/conf && \
+ sh ${.CURDIR}/${MACHINE_ARCH}/dokern.sh ${FDSIZE} < GENERIC > BOOTMFS && \
+ [ -r GENERIC.hints ] && cp GENERIC.hints BOOTMFS.hints
.if exists(${.CURDIR}/${MACHINE}/drivers.conf)
- @cd ${.CURDIR} && ${MAKE} doMODULES KERNEL=BOOTMFS KERNEL_KO=BOOTMFS KODIR=""
+ @perl ${.CURDIR}/scripts/driver-remove.pl \
+ ${.CURDIR}/${MACHINE}/drivers.conf \
+ ${.CURDIR}/../sys/${MACHINE}/conf/BOOTMFS
+ @mkdir -p ${RD}/mfsfd/stand/modules
+ @perl ${.CURDIR}/scripts/driver-copy2.pl \
+ ${.CURDIR}/${MACHINE}/drivers.conf \
+ ${RD}/trees/base/boot/kernel ${RD}/mfsfd/stand/modules
.endif
@echo "Making the regular boot floppy."
- @tar --exclude CVS -cf - -C /usr/src/usr.sbin/sysinstall help | \
+ @tar --exclude CVS -cf - -C ${.CURDIR}/../usr.sbin/sysinstall help | \
tar xf - -C ${RD}/mfsfd/stand
@echo "Compressing doc files..."
@gzip -9 ${RD}/mfsfd/stand/help/*.hlp
.if ${MACHINE_ARCH} == "alpha"
rm -rf ${RD}/mfsfd/stand/help/*
.endif
-.if exists(${.CURDIR}/${MACHINE}/drivers.conf)
- @mkdir -p ${RD}/mfsfd/stand/modules
- @perl ${.CURDIR}/scripts/driver-copy2.pl \
- ${.CURDIR}/${MACHINE}/drivers.conf \
- ${RD}/kernels ${RD}/mfsfd/stand/modules
-.endif
sh -e ${.CURDIR}/scripts/doFS.sh -s mfsroot ${RD} ${MNT} \
${MFSSIZE} ${RD}/mfsfd ${MFSINODE} ${MFSLABEL}
@gzip -9vc mfsroot > mfsroot.gz
@@ -923,70 +927,21 @@ installCRUNCH:
fi
#
-# --==## BOOTMFS config file ##==--
-#
-
-createBOOTMFS:
- @cd ${.CURDIR}/../sys/${MACHINE}/conf && \
- sh ${.CURDIR}/${MACHINE_ARCH}/dokern.sh ${FDSIZE} < ${KERNCONF} > BOOTMFS && \
- [ -r ${KERNCONF}.hints ] && cp ${KERNCONF}.hints BOOTMFS.hints
-.if 0 && ${MACHINE_ARCH} == "i386"
- @echo "options INTRO_USERCONFIG" >> \
- ${.CURDIR}/../sys/${MACHINE}/conf/BOOTMFS
-.endif
-.if exists(${.CURDIR}/${MACHINE}/drivers.conf)
- @perl ${.CURDIR}/scripts/driver-remove.pl \
- ${.CURDIR}/${MACHINE}/drivers.conf \
- ${.CURDIR}/../sys/${MACHINE}/conf/BOOTMFS
-.endif
-
-#
-# --==## Compile a kernel by name ${KERNEL} ##==--
-#
-# We don't erase the sys/${MACHINE}/compile/${KERNEL} directory, since somebody
-# may want to reuse it (release.8 presently)
-#
-doKERNEL:
- @rm -f ${RD}/kernels/${KERNEL}
- @cd ${.CURDIR}/../sys/${MACHINE}/conf && config ${KERNEL}
- @cd ${.CURDIR}/../sys/${MACHINE}/compile/${KERNEL} && \
- make kernel-depend && \
- make -DNO_WERROR ${KERNEL_FLAGS} ${KERNEL_KO} && \
- make kernel-reinstall DESTDIR=${RD}/kernels && \
- [ -r ${.CURDIR}/../sys/${MACHINE}/conf/${KERNEL}.hints ] && \
- cp ${.CURDIR}/../sys/${MACHINE}/conf/${KERNEL}.hints ${RD}/kernels
-
-doMODULES:
- @rm -f ${RD}/kernels/*.ko
- @cd ${.CURDIR}/../sys/${MACHINE}/conf && config ${KERNEL}
- @cd ${.CURDIR}/../sys/${MACHINE}/compile/${KERNEL} && \
- make modules-depend && \
- make -DNO_WERROR ${KERNEL_FLAGS} modules && \
- make modules-reinstall DESTDIR=${RD}/kernels && \
-
-doSTDKERNEL:
- @rm -f ${RD}/kernels/${KERNEL}
- @cd ${.CURDIR}/../sys/${MACHINE}/conf && config ${KERNEL}
- @cd ${.CURDIR}/../sys/${MACHINE}/compile/${KERNEL} && \
- make depend && \
- make -DNO_WERROR ${KERNEL_FLAGS} KERNEL=${KERNEL} && \
- make KERNEL=${KERNEL} DESTDIR=${RD}/kernels install && \
- [ -r ${.CURDIR}/../sys/${MACHINE}/conf/${KERNEL}.hints ] && \
- cp ${.CURDIR}/../sys/${MACHINE}/conf/${KERNEL}.hints ${RD}/kernels
- @-cd ${.CURDIR}/../sys/${MACHINE}/compile/${KERNEL} && \
- make KERNEL=${KERNEL} DESTDIR=${RD}/kernels \
- kernel-reinstall.debug
-
-#
# --==## Put a filesystem into a BOOTMFS kernel ##==--
#
doMFSKERN:
- @echo "Running doMFSKERN for ${FSIMAGE}"
- @rm -f ${RD}/kernels/BOOTMFS.${FSIMAGE}
- @cd ${.CURDIR} && ${MAKE} createBOOTMFS
- @cd ${.CURDIR} && ${MAKE} doKERNEL KERNEL=BOOTMFS KERNEL_KO=BOOTMFS KODIR=""
+ @echo "Running ${.TARGET} for ${FSIMAGE}"
+ @rm -f ${RD}/kernels/BOOTMFS ${RD}/kernels/BOOTMFS.${FSIMAGE}
+ cd ${.CURDIR}/..; \
+ KERNEL_KO=BOOTMFS KODIR= \
+ ${MAKE} ${KERNEL_FLAGS} -DNO_WERROR -DNO_MODULES -DNO_KERNELCLEAN \
+ KERNCONF=BOOTMFS buildkernel reinstallkernel \
+ DESTDIR=${RD}/kernels
+.if exists(${.CURDIR}/../sys/${MACHINE}/conf/BOOTMFS.hints)
+ cp ${.CURDIR}/../sys/${MACHINE}/conf/BOOTMFS.hints ${RD}/kernels
+.endif
@rm -rf ${RD}/image.${FSIMAGE}
- @mkdir ${RD}/image.${FSIMAGE}
+ @mkdir ${RD}/image.${FSIMAGE}
@cd ${RD}/kernels && \
(chflags noschg BOOTMFS || true) && \
strip BOOTMFS && \
diff --git a/release/scripts/catpages-make.sh b/release/scripts/catpages-make.sh
index 755057d..042d104 100755
--- a/release/scripts/catpages-make.sh
+++ b/release/scripts/catpages-make.sh
@@ -10,3 +10,8 @@ if [ -d ${RD}/trees/base/usr/share/man ]; then
find cat* whatis | cpio -dumpl ${RD}/trees/catpages/usr/share/man > /dev/null 2>&1) &&
rm -rf ${RD}/trees/base/usr/share/man/cat*;
fi
+if [ -d ${RD}/trees/base/usr/share/perl/man ]; then
+ ( cd ${RD}/trees/base/usr/share/perl/man;
+ find cat* whatis | cpio -dumpl ${RD}/trees/catpages/usr/share/perl/man > /dev/null 2>&1) &&
+ rm -rf ${RD}/trees/base/usr/share/perl/man/cat*;
+fi
diff --git a/release/scripts/doFS.sh b/release/scripts/doFS.sh
index 12aceaa..985f7ed 100644
--- a/release/scripts/doFS.sh
+++ b/release/scripts/doFS.sh
@@ -21,6 +21,9 @@ FSPROTO=$1 ; shift
FSINODE=$1 ; shift
FSLABEL=$1 ; shift
+BOOT1=${RD}/trees/base/boot/boot1
+BOOT2=${RD}/trees/base/boot/boot2
+
deadlock=20
dofs_vn () {
@@ -47,7 +50,7 @@ dofs_vn () {
dd of=${FSIMG} if=/dev/zero count=${FSSIZE} bs=1k 2>/dev/null
vnconfig -s labels -c /dev/r${VNDEVICE} ${FSIMG}
- disklabel -Brw ${VNDEVICE} ${FSLABEL}
+ disklabel -w -B -b ${BOOT1} -s ${BOOT2} ${VNDEVICE} ${FSLABEL}
newfs -i ${FSINODE} -o space -m 1 /dev/r${VNDEVICE}c
mount /dev/${VNDEVICE}c ${MNT}
@@ -98,7 +101,7 @@ dofs_md () {
exit 1
fi
fi
- disklabel -Brw ${MDDEVICE} ${FSLABEL}
+ disklabel -w -B -b ${BOOT1} -s ${BOOT2} ${MDDEVICE} ${FSLABEL}
newfs -i ${FSINODE} -o space -m 0 /dev/${MDDEVICE}c
mount /dev/${MDDEVICE}c ${MNT}
diff --git a/release/scripts/manpages-make.sh b/release/scripts/manpages-make.sh
index bb1326f..0f13d3c 100755
--- a/release/scripts/manpages-make.sh
+++ b/release/scripts/manpages-make.sh
@@ -10,3 +10,8 @@ if [ -d ${RD}/trees/base/usr/share/man ]; then
find . | cpio -dumpl ${RD}/trees/manpages/usr/share/man > /dev/null 2>&1) &&
rm -rf ${RD}/trees/base/usr/share/man;
fi
+if [ -d ${RD}/trees/base/usr/share/perl/man ]; then
+ ( cd ${RD}/trees/base/usr/share/perl/man;
+ find . | cpio -dumpl ${RD}/trees/manpages/usr/share/perl/man > /dev/null 2>&1) &&
+ rm -rf ${RD}/trees/base/usr/share/perl/man;
+fi
OpenPOWER on IntegriCloud