From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 9 00:34:11 2012 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 2EFA6A42 for ; Fri, 9 Nov 2012 00:34:11 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id 98AE78FC08 for ; Fri, 9 Nov 2012 00:34:10 +0000 (UTC) Received: from ur.dons.net.au (ppp118-210-218-164.lns20.adl6.internode.on.net [118.210.218.164]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id qA90Xtuk060298 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Fri, 9 Nov 2012 11:04:01 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: Custom FreeBSD usb memstick From: "Daniel O'Connor" In-Reply-To: Date: Fri, 9 Nov 2012 11:03:55 +1030 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: "Sam Fourman Jr." X-Mailer: Apple Mail (2.1499) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 Cc: hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Nov 2012 00:34:11 -0000 On 09/11/2012, at 8:37, Sam Fourman Jr. wrote: > I have a interest in playing around with the scripts that create the > memstick image when you run make release... > can anyone point me in the right direction, how would I go about > modifying the size of the partition that gets created on the memstick > image It uses makefs to create an image that is just the right size for the = files that are included. I wrote a script that will format a given device and splat the installer = stuff on it, ie cat >make-usb.sh < = ${TMPDIR}/mnt/etc/fstab sync umount "${TMPDIR}/mnt" rm -rf "${TMPDIR}" EOF The usage example is specific to my work - I have a big tarball full of = preinstalled ports which the script copies to the USB key along with a = script to install it, but you don't need that, just run.. sh ./make-usb.sh /dev/da1 /usr/obj/usr/src/release/release (Obviously /dev/da1 should be your USB key, check dmesg etc etc) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C