Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/build.sh,v rcsdiff: /ftp/cvs/cvsroot/src/build.sh,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.253 retrieving revision 1.253.2.1 diff -u -p -r1.253 -r1.253.2.1 --- src/build.sh 2012/01/22 03:53:32 1.253 +++ src/build.sh 2012/03/02 16:48:10 1.253.2.1 @@ -1,5 +1,5 @@ #! /usr/bin/env sh -# $NetBSD: build.sh,v 1.253 2012/01/22 03:53:32 tsutsui Exp $ +# $NetBSD: build.sh,v 1.253.2.1 2012/03/02 16:48:10 riz Exp $ # # Copyright (c) 2001-2011 The NetBSD Foundation, Inc. # All rights reserved. @@ -503,6 +503,8 @@ initdefaults() do_syspkgs=false do_iso_image=false do_iso_image_source=false + do_live_image=false + do_install_image=false do_params=false do_rump=false @@ -1577,6 +1579,16 @@ validatemakeparams() fi ;; esac + + # live-image and install-image targets require binary sets + # (actually DESTDIR/etc/mtree/set.* files) built with MKUNPRIVED. + # If release operation is specified with live-image or install-image, + # the release op should be performed with -U for later image ops. + # + if ${do_release} && ( ${do_live_image} || ${do_install_image} ) && \ + [ "${MKUNPRIVED}" = "no" ] ; then + bomb "-U must be specified on building release to create images later." + fi } @@ -1644,7 +1656,7 @@ createmakewrapper() eval cat <