All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marc Ferland <ferlandm@sonatest.com>
To: yocto@yoctoproject.org
Subject: Re: Runtime update of yocto-images
Date: Mon, 01 Oct 2012 16:51:24 -0400	[thread overview]
Message-ID: <87zk457w6r.fsf@sonatest.com> (raw)
In-Reply-To: <D9A15604-C508-4314-B4DC-B6F52691EC51@jusst.de> (Julian Scheel's message of "Mon, 1 Oct 2012 22:18:12 +0200")

Julian Scheel <julian@jusst.de> writes:

> Hi,
>
> I wonder how everyone deals with runtime updates of yocto based
> systems? Are you using the package management for this? Actually I'd
> prefer a one-file update, which would replace the whole rootfs. I
> think having a squashfs image containing the rootfs and place it on
> some ext-partition would be nice. One would just need an initramfs,
> that could mount the squashfs file as root.
>
> Is anyone following an approach like this?

This is the approach that I've taken. Works fairly well.

You will need to:
- Create your own init script (look in:
meta/recipes-core/initrdscripts/files as a starting point)
- Patch your kernel with AUFS/unionfs/overlayfs if you want something
that is not 100% volatile.
- Create an "install/update" script that actually takes care of updating
your squashfs rootfs from the initramfs.

Marc


  reply	other threads:[~2012-10-01 20:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-01 20:18 Runtime update of yocto-images Julian Scheel
2012-10-01 20:51 ` Marc Ferland [this message]
2012-10-03  6:20   ` Khem Raj

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zk457w6r.fsf@sonatest.com \
    --to=ferlandm@sonatest.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.