Re: svn commit: r265171 - head/release/powerpc

2014-04-30 Thread Nathan Whitehorn

On 04/30/14 20:26, Justin Hibbits wrote:

On Apr 30, 2014, at 8:24 PM, Nathan Whitehorn wrote:


Author: nwhitehorn
Date: Thu May  1 03:24:41 2014
New Revision: 265171
URL: http://svnweb.freebsd.org/changeset/base/265171

Log:
 Use mkimg instead of md(4) and gpart.

Modified:
 head/release/powerpc/make-memstick.sh

Modified: head/release/powerpc/make-memstick.sh


Does this mean we can 'make release' without root now?  Cool!

- Justin



Probably? I haven't actually tried. What it certainly means is that you 
can cross-build all PowerPC install media without kldload'ing geom_part_apm.

-Nathan
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r265171 - head/release/powerpc

2014-04-30 Thread Justin Hibbits

On Apr 30, 2014, at 8:24 PM, Nathan Whitehorn wrote:


Author: nwhitehorn
Date: Thu May  1 03:24:41 2014
New Revision: 265171
URL: http://svnweb.freebsd.org/changeset/base/265171

Log:
 Use mkimg instead of md(4) and gpart.

Modified:
 head/release/powerpc/make-memstick.sh

Modified: head/release/powerpc/make-memstick.sh


Does this mean we can 'make release' without root now?  Cool!

- Justin

___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r265171 - head/release/powerpc

2014-04-30 Thread Nathan Whitehorn
Author: nwhitehorn
Date: Thu May  1 03:24:41 2014
New Revision: 265171
URL: http://svnweb.freebsd.org/changeset/base/265171

Log:
  Use mkimg instead of md(4) and gpart.

Modified:
  head/release/powerpc/make-memstick.sh

Modified: head/release/powerpc/make-memstick.sh
==
--- head/release/powerpc/make-memstick.sh   Thu May  1 03:24:20 2014
(r265170)
+++ head/release/powerpc/make-memstick.sh   Thu May  1 03:24:41 2014
(r265171)
@@ -41,38 +41,7 @@ if [ $? -ne 0 ]; then
 fi
 rm ${1}/etc/fstab
 
-#
-# Use $BLOCKSIZE for transfers to improve efficiency.  When calculating
-# how many blocks to transfer "+ 2" is to account for truncation in the
-# division and to provide space for the label.
-#
-
-filesize=`stat -f "%z" ${tempfile}`
-blocks=$(($filesize / ${BLOCKSIZE} + 1728))
-dd if=/dev/zero of=${2} bs=${BLOCKSIZE} count=${blocks}
-if [ $? -ne 0 ]; then
-  echo "creation of image file failed"
-  exit 1
-fi
-
-unit=`mdconfig -a -t vnode -f ${2}`
-if [ $? -ne 0 ]; then
-  echo "mdconfig failed"
-  exit 1
-fi
-
-gpart create -s APM ${unit}
-gpart add -t freebsd-boot -s 800K ${unit}
-gpart bootcode -p ${1}/boot/boot1.hfs -i 1 ${unit}
-gpart add -t freebsd-ufs -l FreeBSD_Install ${unit}
-
-dd if=${tempfile} of=/dev/${unit}s3 bs=$BLOCKSIZE conv=sync
-if [ $? -ne 0 ]; then
-  echo "copying filesystem into image file failed"
-  exit 1
-fi
-
-mdconfig -d -u ${unit}
+mkimg -s apm -p freebsd-boot:=${1}/boot/boot1.hfs -p 
freebsd-ufs/FreeBSD_Install:=${tempfile} -o ${2}
 
 rm -f ${tempfile}
 
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"