Subject: Re: Creating bootable CDs as part of the release process
To: Martin Husemann <martin@duskware.de>
From: Peter Eisch <peter@boku.net>
List: current-users
Date: 06/07/2006 10:47:58
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3232522080_10219919
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit

On 6/7/06 10:10 AM, "Martin Husemann" <martin@duskware.de> wrote:

> On Wed, Jun 07, 2006 at 10:03:59AM -0500, Peter Eisch wrote:
>> I do have a wrapper around the macppc build that fiddles with making the cd
>> bootable.  What other platforms need such helpers?
> 
> Many, but ~all besides macppc use external tools and port straight forward
> from mkisofs to makefs.
> 
> Does your wrapper work with makefs? Can you share it?
> 

Excellent question.  I wasn't really even aware of makefs until this whole
thread started.  I'm not sure how I missed its introduction.  My wrapper
script is attached.  My 'current' dir looks like this:

buster> ls -asl | grep -v log
total 5792
   4 drwxr-xr-x   2 peter  users    1024 Jun  7 10:25 .
   4 drwxr-xr-x  13 peter  users     512 Jun  2 14:52 ..
   8 -rw-r--r--   1 peter  users    2168 Apr 25  2005 PETER-FW.i386
   4 -rw-r--r--   1 peter  users    1621 Dec 10  2004 PETER-FW.macppc
   4 -rw-r--r--   1 peter  users    1620 Dec 10  2004 PETER-FW.sparc
   8 -rw-r--r--   1 peter  users    2658 Dec 10  2004 PETER-FW.sparc64
   4 -rw-r--r--   1 peter  users    1787 Jun  6 12:16 PETER-FW2.i386
   0 lrwxrwxr-x   1 peter  users       4 Jan  8 07:12 amd64 -> arch
  12 -rwxr-xr-x   1 peter  users    5199 Jun  6 22:19 arch
   4 -rwxr-xr-x   1 peter  users     702 May 18 08:31 cvsupdate
   0 lrwxr-xr-x   1 peter  users       4 Jun 21  2004 i386 -> arch
   0 lrwxr-xr-x   1 peter  users       4 Jul 15  2004 macppc -> arch
   4 -rwxrwxr-x   1 peter  users     209 Jun 13  2005 newcvshost
   0 lrwxr-xr-x   1 peter  users       4 Jan 19  2005 next68k -> arch
   4 -rwxr-xr-x   1 peter  users     455 Jun  6 23:07 run-em
   0 lrwxr-xr-x   1 peter  users       4 Nov 26  2004 sparc -> arch
   0 lrwxr-xr-x   1 peter  users       4 Jun 21  2004 sparc64 -> arch
buster> 

The cvsupdate and newcvshost are self-explanatory.  The run-em script is
just:

buster> cat run-em
#!/bin/csh

foreach i ( cvsupdate i386 sparc64 macppc sparc next68k )
./$i >& log.$i
end

buster> 

To the point of the macppc wrapper, scan through the attached script for
conditionals testing for "macppc" and it should be straight-forward.

I believe the bootable macppc setup in here works, it's unfortunately been a
couple months since I've installed on it.  I forget the disk partitioning
bits until it's too late.

As for building a "live" CD: I'd probably do those functions at the end of
the 'arch' script.  I'd copy in my blob which installs pkgs built from
pkgsrc apropos to what functions/config I need the system to perform.  I'd
also like the "live" CD to be able to boot multiple platforms
(i386/sparc/sparc64 at least).  If anyone has a tip for me on how to make
that work, I'd be grateful.


Thanks,

peter


--B_3232522080_10219919
Content-type: application/octet-stream; name="arch"
Content-disposition: attachment
Content-transfer-encoding: base64

IyEvYmluL3NoCgpDVlNWRVJTPWN1cnJlbnQKVEFSR0VUPSQqCkJBU0VESVI9L2J1aWxkcy8k
e0NWU1ZFUlN9CklTT0RJUj0vYnVpbGRzL2lzby8ke0NWU1ZFUlN9Ck1BQ0hJTkU9YGJhc2Vu
YW1lICQwYApTQ1JJUFRESVI9YGRpcm5hbWUgJDBgClNSQ0RJUj0ke0JBU0VESVJ9L3NyYwpY
MTFTUkNESVI9JHtCQVNFRElSfS94c3JjCkFSR1M9Ii1qIGBzeXNjdGwgLW4gaHcubmNwdWAi
ClRPREFZPWBkYXRlICslWSVtJWRgCkxPQ0FMVElNRT1DU1Q2Q0RUCkdMT0JfS0VSTkVMUz0w
CgpleHBvcnQgQVJHUyBNQUNISU5FIFRBUkdFVCBCQVNFRElSIFgxMVNSQ0RJUiBUT0RBWSBM
T0NBTFRJTUUKCk1LVVBEQVRFPXllcwpNS1gxMT15ZXMKTUtTRU5ETUFJTD1ubwpNS09CSkRJ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