From: Alex J Lennon <ajlennon@dynamicdevices.co.uk>
To: Yocto <yocto@yoctoproject.org>
Subject: Resizing root flash partition/filesystem on first boot
Date: Wed, 04 Mar 2015 22:32:40 +0100 [thread overview]
Message-ID: <54F779F8.8010709@dynamicdevices.co.uk> (raw)
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
next reply other threads:[~2015-03-04 21:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-04 21:32 Alex J Lennon [this message]
2015-03-05 2:38 ` Resizing root flash partition/filesystem on first boot 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
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=54F779F8.8010709@dynamicdevices.co.uk \
--to=ajlennon@dynamicdevices.co.uk \
--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.