Re: [yocto] Runtime update of yocto-images

2012-10-02 Thread Khem Raj
On Mon, Oct 1, 2012 at 1:51 PM, Marc Ferland  wrote:
> Julian Scheel  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

interesting. Do you have some patches to share ?

> Marc
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Runtime update of yocto-images

2012-10-01 Thread Marc Ferland
Julian Scheel  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
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Runtime update of yocto-images

2012-10-01 Thread Julian Scheel
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?

Regards,
Julian

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto