<br><br><div class="gmail_quote">On Tue, Dec 16, 2008 at 12:27 PM, Erik Garrison <span dir="ltr"><<a href="mailto:erik@laptop.org">erik@laptop.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On Mon, Dec 15, 2008 at 04:42:48PM -0500, Greg Smith wrote:<br>
> Hi All,<br>
><br>
> Thanks for all the feedback on my questions about what it would take to<br>
> run a slimmed down Fedora 10 on the XO NAND.<br>
> <a href="https://www.redhat.com/archives/fedora-olpc-list/2008-December/msg00022.html" target="_blank">https://www.redhat.com/archives/fedora-olpc-list/2008-December/msg00022.html</a><br>
><br>
> To reiterate, the goal is one distribution with two Desktop Environments<br>
> (Sugar and one "standard" one).<br>
<br>
What of the case where all the functionality of Sugar can be replicated<br>
using a properly-configured standard desktop environment?  (Strawman<br>
this sentence may be, but I think we should be open to this option<br>
moving forward.)<br>
<br>
> I think the main work now is to pick the minimal package list that we<br>
> need and will fit on the XO NAND.<br>
<br>
This is *the* work of making builds.<br>
<br>
> Can anyone get a slimmed down Fedora 10 with window manager running on<br>
> an XO?<br>
<br>
Yes.  I have a build tool which does so.  See:<br>
<br>
    <a href="http://dev.laptop.org/git?p=users/erik/rpmxo;a=summary" target="_blank">http://dev.laptop.org/git?p=users/erik/rpmxo;a=summary</a><br>
<br>
or just:<br>
<br>
    git clone git://<a href="http://dev.laptop.org/users/erik/rpmxo" target="_blank">dev.laptop.org/users/erik/rpmxo</a><br>
<br>
The build tool depends on the current development version of rinse, a<br>
rpm bootstrapping utility.  For our testing purposes I have included a<br>
copy of the rinse mercurial repository in that git tree<br>
(<a href="http://rinse.repository.steve.org.uk/" target="_blank">http://rinse.repository.steve.org.uk/</a>).<br>
<br>
Then install rinse by following the instructions in the<br>
<a href="http://rinse.repository.steve.org.uk" target="_blank">rinse.repository.steve.org.uk</a> directory in the rpmxo repo created by the<br>
above git command.  You will need perl, rpm, and wget (note the<br>
dependencies listed at <a href="http://packages.ubuntu.com/intrepid/rinse" target="_blank">http://packages.ubuntu.com/intrepid/rinse</a>).<br>
Rinse manages a variety of common issues encountered when build and<br>
re-building images, such as caching rpms, bootstrapping yum, and running<br>
post-install scripts.  It does so in a relatively platform-independent<br>
manner.  The author and I have been working together to update the<br>
system for Fedora 10 and to increase its configurability.  (Please note<br>
that I have submitted changes to the author's repo which may not yet be<br>
reflected in a fresh clone, this is why I have temporarily added the<br>
repository to the rpmxo git tree.)<br>
<br>
To run the build script do:<br>
<br>
    sudo ./initchroot.sh<br>
<br>
 ... in the rpmxo git repository directory yielded by the git clone<br>
command above.<br>
<br>
By default this will make f10.root.  Then generate an image to flash<br>
onto an unsecured laptop by using:<br>
<br>
    sudo ./mkjffs2.sh fc10.root fc10.img<br>
<br>
This will create the .crc and .img files which are required for OFW to<br>
flash the image onto the laptop.  Putting these on a USB key and typing:<br>
<br>
    copy-nand u:\fc10.img<br>
<br>
 ... at the OFW prompt on an XO will flash the system onto the internal<br>
NAND.  Rebooting should yield a prompt<br>
<br>
This procedure is still in alpha.  Interested parties should test and<br>
immediately inform me of any issues encountered.<br>
<br>
<br>
> The hard part will come when we need to pick the bare minimum set of<br>
> functionality. I especially want to know what additional<br>
> libraries/RPMs/features we need to install beyond what we alrady have in<br>
>   XO 8.2.0.<br>
<br>
I have been quite frustrated with the Fedora toolset in this regard.<br>
Getting a bare minimum of functionality is not something which these<br>
tools are typically used to do.  The experience of building a Fedora<br>
system from 'scratch' contrasts starkly with what we find in Debian,<br>
where debootstrapping is a common development pattern which is<br>
well-supported by the community.<br>
<br>
It can be done, and I am going to seek as much help from the Fedora<br>
community in doing so as possible.  It just isn't easy and I have felt<br>
like there are a lot of problems in using Fedora in this fashion which<br>
will have to be resolved to make it easy for deployments to use such a<br>
build script.<br>
<br>
(I sincerely hope someone flames me here as any attention to this issue<br>
is good attention.)</blockquote><div><br></div><div>sure :) why aren't you building off mstone's work on Puritan?  It seems like a lot of duplication of effort; unless I'm missing something, the biggest difference seems to be that yours may be more debian-like.</div>
<div><br></div><div>Bobby</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Erik<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.laptop.org">Devel@lists.laptop.org</a><br>
<a href="http://lists.laptop.org/listinfo/devel" target="_blank">http://lists.laptop.org/listinfo/devel</a><br>
</blockquote></div><br>