All of lore.kernel.org
 help / color / mirror / Atom feed
* 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
@ 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

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.