From: Jan Kiszka <jan.kiszka@siemens.com>
To: "Schmidl, Tobias (T CED SES-DE)" <tobiasschmidl@siemens.com>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Cc: "MacDonald, Joe" <joe.macdonald@siemens.com>
Subject: Re: [PATCH] expand-on-first-boot: Switch from resize2fs to systemd-growfs
Date: Wed, 25 May 2022 15:08:16 +0200 [thread overview]
Message-ID: <553d8db1-dae7-22bf-4a7e-b72b6ca9afde@siemens.com> (raw)
In-Reply-To: <2f549cd2234e44f8fabb436b3620e7a9501229d5.camel@siemens.com>
On 25.05.22 15:04, Schmidl, Tobias (T CED SES-DE) wrote:
> Hi all,
>
> Am Mittwoch, dem 25.05.2022 um 14:47 +0200 schrieb Jan Kiszka:
>>
>> Just for the sake of completeness: Since which Debian version is this
>> the case? I assume buster is fine, right? But stretch was not.
>>
>>
>
> That's correct, it was introduced with v236 [1], so halfway between
> stretch (v232) and buster (v241).
>
>
> [1]:
> https://github.com/systemd/systemd/blob/ec5e113f099a3078194ae5fe43f72f52f41fe76b/NEWS#L6515-L6524
>
>>>
>>> +if [ -x /lib/systemd/systemd-growfs ]; then
>>> + MOUNT_POINT=$(findmnt "${LAST_PART}" -o target -n)
>>> + if [ -z "$MOUNT_POINT" ]; then
>>> + echo "Cannot find mount point for ${LAST_PART}"
>>> + exit 1
>>> + fi
>>> + mount "${MOUNT_POINT}" || true
>>> + /lib/systemd/systemd-growfs "${MOUNT_POINT}"
>>> +else
>>> + resize2fs "${LAST_PART}"
>>> +fi
>>
>> I wonder if / how long we should keep the two paths...
>>
>
> That's a strategic decision - do we want to keep the possibility of non-
> systemd systems open? Otherwise this script should IMHO add a runtime
> dependency to systemd (>=236).
>
Well, we already depend on systemd today and provide only systemd unit
files here. In that light, adding a version dependency to systemd would
be fine IMHO.
Jan
--
Siemens AG, Technology
Competence Center Embedded Linux
prev parent reply other threads:[~2022-05-25 13:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-25 12:32 Tobias Schmidl
2022-05-25 12:47 ` Jan Kiszka
2022-05-25 12:57 ` Bezdeka, Florian
2022-05-25 13:03 ` Bezdeka, Florian
2022-05-25 13:04 ` Schmidl, Tobias
2022-05-25 13:08 ` Jan Kiszka [this message]
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=553d8db1-dae7-22bf-4a7e-b72b6ca9afde@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=isar-users@googlegroups.com \
--cc=joe.macdonald@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