From owner-freebsd-hackers@FreeBSD.ORG Fri May 14 22:31:31 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DABCF106566B for ; Fri, 14 May 2010 22:31:31 +0000 (UTC) (envelope-from kensmith@buffalo.edu) Received: from localmailD.acsu.buffalo.edu (localmailD.acsu.buffalo.edu [128.205.5.208]) by mx1.freebsd.org (Postfix) with ESMTP id 9B0F88FC16 for ; Fri, 14 May 2010 22:31:31 +0000 (UTC) Received: from localmailD.acsu.buffalo.edu (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id C66A4C1B3B; Fri, 14 May 2010 18:14:15 -0400 (EDT) Received: from localmailD.acsu.buffalo.edu (localhost [127.0.0.1]) by localmailD.acsu.buffalo.edu (Postfix) with ESMTP id C67F0C1B09; Fri, 14 May 2010 18:14:12 -0400 (EDT) Received: from mweb1.acsu.buffalo.edu (mweb1.acsu.buffalo.edu [128.205.5.238]) by localmailD.acsu.buffalo.edu (Prefixe) with ESMTP id 7FCC6C18F0; Fri, 14 May 2010 18:14:12 -0400 (EDT) Received: from ken-smiths-macbook-pro.local (unknown [24.114.252.231]) by mweb1.acsu.buffalo.edu (Postfix) with ESMTP id 10D985B003B; Fri, 14 May 2010 18:14:12 -0400 (EDT) Message-ID: <4BEDCB32.8070206@buffalo.edu> Date: Fri, 14 May 2010 18:14:10 -0400 From: Ken Smith User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: none none References: <20100513.205343.421.1@DEV> <201005132211.o4DMB4sG018935@fire.js.berklix.net> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-PM-EL-Spam-Prob: : 8% Cc: freebsd-hackers@freebsd.org, "Julian H. Stacey" Subject: Re: Custom USB layout & sysinstall (Starting FIXIT) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2010 22:31:32 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 5/14/10 1:16 PM, none none wrote: > I've read it, all. > What he is proposing, is about building our own image flavor. (make-memstick.sh) > Exactly, that act, is an issue here, as it confuses sysinstall's USB detection. This part of what you say confuses me. I use make-memstick.sh to build the .img files people are downloading and using to do installs with. So if you are using it correctly any machine that can use the .img files I build and we distribute should be able to use what you produce. > There are 2 remedies: > 1) After loader prompt, INSTEAD of starting sysinstall (as I don't > need it at all), immediately START Fixit > 2) Edit /usr/src/usr.sbin/sysinstall/devices.c, at the code lines, > posted below and compile sysinstall, so it could recognize USB device, > on non default USB img layout. > > I favor FIRST solution 1). There are issues with us doing (1) in a widespread way because there are hooks in sysinstall that check to see if it is running as init and it makes lots of decisions based on that. Booting off the install media results in sysinstall running as init, while if you run it later (post-install) it's not running as init. That said, I'm still confused about what's causing you issues. Using text I cut out of this message just to shorten it a bit you said you successfully mounted the memory stick so you could copy stuff out of it, with the intention of modifying it for your purposes. Lets say you copied the contents to /foo, and you made your modifications to it there. After doing your modifications you should be able to do: make-memstick.sh /foo foo.img and the resulting foo.img file should be something you can use in exactly the same way as the .img files I build and distribute. You would need to dd the foo.img file onto a memstick using the same instructions as I give for doing it with the distributed files. I'm not quite sure what could be going wrong if those are the steps you're following. The resulting image should start up sysinstall for you, and you should be able to enter into fixit mode from there. Getting it to skip starting up sysinstall and go straight to fixit mode for you is more complicated, you would need to fiddle a lot more with the pieces you copied out into /foo. Apologies if I'm still not understanding what you're attempting to do - if I'm still "not getting it" can you let us know what piece of the steps above don't accomplish what you're trying to do? Again just to be clear - there should be no difference in how you handle the .img file you create versus the one I created. And the directory /foo I mention above should not be on the memory stick itself, it should be a normal directory on a normal hard drive created by copying the contents of the distributed memory stick image onto the hard drive. - -- Ken Smith - - From there to here, from here to | kensmith@buffalo.edu there, funny things are everywhere. | - Theodore Geisel | -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkvtyzIACgkQ/G14VSmup/aF2ACgleMTRal5LLJSkwj1LU7pPzjx aLUAmwRUVgEp2j/7ifa6n/mGlTbG+nMl =lmMV -----END PGP SIGNATURE-----