Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-embedded
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-embedded@g.o
From: Joakim Tjernlund <joakim.tjernlund@...>
Subject: Re: quickpkg and PKG_INSTALL_MASK
Date: Tue, 24 Jan 2012 08:52:19 +0100
Ed W <lists@...> wrote on 2012/01/23 19:43:49:

> From: Ed W <lists@...>
> To: gentoo-embedded@g.o
> Date: 2012/01/23 19:44
> Subject: Re: [gentoo-embedded] quickpkg and PKG_INSTALL_MASK
>
> On 26/12/2011 18:03, Joakim Tjernlund wrote:
> > I am contemplating a greater problem too. Our system require we can install
> > multiple versions of our SW and switch between them. This is easy to do when it
> > comes to our own app but not when one want to upgrade core parts of the system, like
> > libc etc.
> >
> > So I am thinking one could use --bind mounts and switch_root to solve that. Basically
> > one has a skeleton root FS with /bin, /lib, /usr /opt etc.
> > Each upgrade goes into dirs like:
> >    bin_1.x.y/ usr_1.x.y/ lib_1.x.y/ opt_1.x.y/ sbin_1.x.y/
> > Then, from an initramfs, one selects which of xxx_1.x.y dir one wants to use
> > and --bind mounts them under the corresponding skeleton dir.
> >
>
> I'm doing something like this using aufs.  The performance seems "not
> bad", but you get a couple MB or so memory hit.  (I'm using squashfs as
> well, so unsure which causes the main memory increase).

hmm, not sure how aufs would work out. One would like to permanently delete the
old sw at some point and I don't see how, perhaps I misunderstand something?

How does aufs do w.r.t power cuts? We need a reliable FS w.r.t power cuts. In the
past we have used JFFS2 on NOR flash and that has worked really well. Now
we need to switch to NAND due to size requirements.

>
> I think if the device is reasonably beefy then you should have no
> problem with aufs or some similar overlay filesystem (I think some new
> one got added to kernel recently?).  Failing that, what about good old
> "cp -a" to merge all the input dirs?  Takes some time and disk space,
> but nice and simple?

Not sure I get the "cp -a" idea. You are suggesting to create a new root FS by
copying the non changed dirs from the previous version and combine these with
the new SW?

 Jocke



Replies:
Re: quickpkg and PKG_INSTALL_MASK
-- Todd Goodman
References:
quickpkg and PKG_INSTALL_MASK
-- Joakim Tjernlund
Re: quickpkg and PKG_INSTALL_MASK
-- Kfir Lavi
Re: quickpkg and PKG_INSTALL_MASK
-- solar
Re: quickpkg and PKG_INSTALL_MASK
-- Joakim Tjernlund
Re: quickpkg and PKG_INSTALL_MASK
-- Ed W
Navigation:
Lists: gentoo-embedded: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: quickpkg and PKG_INSTALL_MASK
Next by thread:
Re: quickpkg and PKG_INSTALL_MASK
Previous by date:
Re: crash proofing a system from power cutoffs
Next by date:
Re: quickpkg and PKG_INSTALL_MASK


Updated Jun 25, 2012

Summary: Archive of the gentoo-embedded mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.