* Resizing root flash partition/filesystem on first boot
@ 2015-03-04 21:32 Alex J Lennon
2015-03-05 2:38 ` J. Tang
0 siblings, 1 reply; 4+ messages in thread
From: Alex J Lennon @ 2015-03-04 21:32 UTC (permalink / raw)
To: Yocto
Hi,
I'd like to be able to build an SD card image, deploy to a system and
have it automatically resize on first boot. I haven't seen functionality
that would do this in Yocto. If there is a setting for this could
anybody let me know where that is?
Alternatively if this isn't supported out of the box I was thinking of
adding something, say as a recipe with a post installation task that ran
fdisk, then resizee2fs then either remounted the root f/s if possible or
alternatively rebooted.
I have had a look at this and in a manual hand-rolled way it seems to
work fine.
That said,
e2fsprogs doesn't seem to package resize2fs but I have a small patch to
enable that.
The next problem is that I can automate fdisk with a pipe but when I
delete a partition and create it the default is to start at 1,
overlapping the existing DOS partition that I have on my i.MX6 SD card
images. Odd as I am sure this is different behaviour from what I'd
expect from fdisk on a desktop. I'd have to do some parsing of the
existing partition sizes I guess which I would rather avoid for
simplicity if possible.
If anybody could let me know if this has been done so is a waste of my
time, or if there's a better way to achieve this I'd be grateful.
Thanks,
Alex
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Resizing root flash partition/filesystem on first boot
2015-03-04 21:32 Resizing root flash partition/filesystem on first boot Alex J Lennon
@ 2015-03-05 2:38 ` J. Tang
0 siblings, 0 replies; 4+ messages in thread
From: J. Tang @ 2015-03-05 2:38 UTC (permalink / raw)
To: Alex J Lennon; +Cc: Yocto
On Mar 4, 2015, at 16:32 , Alex J Lennon <ajlennon@dynamicdevices.co.uk> wrote:
> I'd like to be able to build an SD card image, deploy to a system and
> have it automatically resize on first boot. I haven't seen functionality
> that would do this in Yocto. If there is a setting for this could
> anybody let me know where that is?
I wrote a startup script that does exactly this. If you are interested, I can publish the code + BitBake recipe.
--
Jason Tang / tang@jtang.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Resizing root flash partition/filesystem on first boot
@ 2016-10-13 6:13 Peter Balazovic
2016-10-16 18:24 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Peter Balazovic @ 2016-10-13 6:13 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 136 bytes --]
Hello Jason,
I'm interested in your code + BitBake recipe to be able to *automatically
resize on first boot*.
Thank you.
Peter
[-- Attachment #2: Type: text/html, Size: 559 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Resizing root flash partition/filesystem on first boot
2016-10-13 6:13 Peter Balazovic
@ 2016-10-16 18:24 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2016-10-16 18:24 UTC (permalink / raw)
To: Peter Balazovic; +Cc: yocto
[-- Attachment #1.1: Type: text/plain, Size: 722 bytes --]
> On Oct 12, 2016, at 11:13 PM, Peter Balazovic <balazovic.peter@gmail.com> wrote:
>
> Hello Jason,
>
> I'm interested in your code + BitBake recipe to be able to automatically resize on first boot.
Take a look at 96boards layer there is a recipe as well as systemd service file that will be packaged into image
https://github.com/96boards/meta-96boards/blob/master/recipes-bsp/96boards-tools/96boards-tools_0.7.bb <https://github.com/96boards/meta-96boards/blob/master/recipes-bsp/96boards-tools/96boards-tools_0.7.bb>
>
> Thank you.
> Peter
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
[-- Attachment #1.2: Type: text/html, Size: 1903 bytes --]
[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-10-16 18:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-04 21:32 Resizing root flash partition/filesystem on first boot Alex J Lennon
2015-03-05 2:38 ` J. Tang
-- strict thread matches above, loose matches on Subject: below --
2016-10-13 6:13 Peter Balazovic
2016-10-16 18:24 ` Khem Raj
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.