[Lava-users] rootfs resize in LAVA2
Dragos.Iorgulescu at enea.com
Fri Nov 24 13:38:27 UTC 2017
Thanks a lot for the hints!
From: Anibal Limon [mailto:anibal.limon at linaro.org]
Sent: Thursday, November 23, 2017 5:34 PM
To: Dragos Iorgulescu <Dragos.Iorgulescu at enea.com>
Cc: lava-users at lists.linaro.org
Subject: Re: [Lava-users] rootfs resize in LAVA2
On 23 November 2017 at 09:18, Dragos Iorgulescu <Dragos.Iorgulescu at enea.com<mailto:Dragos.Iorgulescu at enea.com>> wrote:
Does LAVA offer a way to resize rootfs images (“ramdisk_files”, as they are referred to in the code) before deploying them?
We are working with our own Linux distro on a Cavium board and we need to resize the rootfs image (which is ext4) after the test overlays are added by LAVA. This step is necessary since we need to run a series of community tests that imply a large number of package dependencies. Also, we do not want to resize the whole image by default, since this will have other CI storage side effects and, also, some policy implications (that I am not really aware of 😊).
There is no functionality for resize images in LAVA, here is another discussion related .
Anyway, we are currently looking at adding/altering apply_overlay.py (pipeline/actions/) in order to run a resize2fs command after the “updated” ramdisk is unmounted. Just wondering if there is already a more elegant way of doing this.
Now you can (2017.11) execute your own shell code into a LXC previous the deployment of the image and make the resize,
I'm using it to increase the rootfs debian image size (ext4) for a db410c device. 
We are also considering making some extensions and maybe get to the point where we could specify this type of requirement in the device dictionary or the device template itself, and then specific code would be executed only if such a setting would be encountered at runtime, but that remains to be discussed.
Thanks in advance!
Lava-users mailing list
Lava-users at lists.linaro.org<mailto:Lava-users at lists.linaro.org>
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lava-users