From: Henning Schild <henning.schild@siemens.com>
To: "Bezdeka, Florian (T CED SES-DE)" <florian.bezdeka@siemens.com>
Cc: "isar-users@googlegroups.com" <isar-users@googlegroups.com>,
"MacDonald, Joe (DI SW CAS ES TO)" <joe.macdonald@siemens.com>,
"Schmidl, Tobias (T CED SES-DE)" <tobiasschmidl@siemens.com>,
Raphael Lisicki <raphael.lisicki@siemens.com>
Subject: Re: [PATCH v6 0/1] expand-on-first-boot: Switch from resize2fs to systemd-growfs
Date: Tue, 25 Oct 2022 16:31:31 +0200 [thread overview]
Message-ID: <20221025163131.6138db34@md1za8fc.ad001.siemens.net> (raw)
In-Reply-To: <8d7cef14f247750e2da8b715b9dbaa70d20280a9.camel@siemens.com>
Am Tue, 25 Oct 2022 15:55:00 +0200
schrieb "Bezdeka, Florian (T CED SES-DE)" <florian.bezdeka@siemens.com>:
> On Tue, 2022-10-25 at 15:49 +0200, Henning Schild wrote:
> > I am taking this over from Tobias. The last remaining point was
> > keeping the support for stretch, which i implemented here.
>
> There were complains on the list that we have a possible race-window
> here. A /data partition was unmounted after the resize took place.
>
> That is likely not directly related to this patch, as this is "not in
> yet" but I assume we still would have the same race.
>
> See [1].
I would hope that the race will be gone when doing things with systemd,
but i do not know. In the stretch case it might be still in, but i
really do not care ... we should drop stretch from Isar or maintain it
on the best effort basis suggested here. Make sure it still works ...
but not much more.
I have read that thread and pointed out there that systemd resize will
be coming, and that people can try it already to see if it solves their
problem. Will take Raphael in Cc.
Raphael please have a look at the following patch, it might just solve
your resize race.
https://patchwork.isar-build.org/project/isar/patch/20221025134720.22571-2-henning.schild@siemens.com/
Henning
>
> [1] https://groups.google.com/g/isar-users/c/o-iZbN7hPRw
>
> >
> > Henning
> >
> > Am Tue, 25 Oct 2022 15:47:19 +0200
> > schrieb Henning Schild <henning.schild@siemens.com>:
> >
> > > Diff to v5:
> > > - keep fallback path for debian stretch simply using old code and
> > > rdeps
> > >
> > > Original Authors log:
> > >
> > > Diff to v1:
> > > - Rewording on patch message ("root partition" --> "last
> > > partition", added note to systemd-dependency and its impact)
> > > - Added systemd-version dependency
> > > - Removed runtime if case that allowed for non-systemd systems
> > >
> > > Diff to v2:
> > > - Version bump to v1.2
> > > - Removed e2fsprogs as dependency
> > >
> > > Diff to v3:
> > > - Omit the explicit call to systemd-growfs if a fstab option has
> > > been found
> > > - Be able to deal with both mounted and unmounted mountpoints
> > >
> > > Diff to v4:
> > > - Mount the last partition unconditionally to a tmp dir and let
> > > systemd-growfs operate there.
> > >
> > > Tobias Schmidl (1):
> > > expand-on-first-boot: Switch from resize2fs to systemd-growfs
> > >
> > > ...oot_1.1.bb => expand-on-first-boot_1.2.bb} | 3 +-
> > > .../files/expand-last-partition.sh | 31
> > > ++++++++++++++++--- 2 files changed, 28 insertions(+), 6
> > > deletions(-) rename
> > > meta/recipes-support/expand-on-first-boot/{expand-on-first-boot_1.1.bb
> > > => expand-on-first-boot_1.2.bb} (88%)
> > >
> >
>
next prev parent reply other threads:[~2022-10-25 14:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-25 13:47 Henning Schild
2022-10-25 13:47 ` [PATCH v6 1/1] " Henning Schild
2022-10-25 15:34 ` Henning Schild
2022-10-25 13:49 ` [PATCH v6 0/1] " Henning Schild
2022-10-25 13:55 ` Bezdeka, Florian
2022-10-25 14:31 ` Henning Schild [this message]
2022-10-28 14:34 ` Raphael Lisicki
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=20221025163131.6138db34@md1za8fc.ad001.siemens.net \
--to=henning.schild@siemens.com \
--cc=florian.bezdeka@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=joe.macdonald@siemens.com \
--cc=raphael.lisicki@siemens.com \
--cc=tobiasschmidl@siemens.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox