OLPC-Update + RPMs WAS:Re: OLPC XO Opera browser as Sugar activity

C. Scott Ananian cscott at cscott.net
Sat Jun 28 13:09:58 EDT 2008


On Sat, Jun 28, 2008 at 11:59 AM, Martin Langhoff
<martin.langhoff at gmail.com> wrote:
> On Sat, Jun 28, 2008 at 11:38 AM, C. Scott Ananian <cscott at cscott.net> wrote:
>>> All reasonable, and the snapshot based approach has certain key
>>> advantages for some uses. There is one thing that really bothers me,
>>> however, and makes me suspect that we cannot actually use the snapshot
>>> approach long term: that it completely bypasses rpm's preinst/postinst
>>> scripts.
>>
>> That is not the case.  rpm's preinst/postinst script are run when the
>> image is built.
>
> Yes, but this happens in absense of real user data or configuration.
> Which means that all those fancy conditionals ("are we upgrading from
> an earlier version? update the format in which we store the data!")
> are skipped. The need for those scripts is somewhat lower on our
> platform so far, but without them there is a whole lot of stuff we
> cannot deal with gracefully.

Yes, exactly: olpc-update has been designed so that the need for those
scripts is *zero*.  You get a clean install every time, guaranteed.
 --scott

-- 
 ( http://cscott.net/ )



More information about the Devel mailing list