public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH 0/2] expand-on-first-boot: try fs resize on expanded partitions
@ 2022-11-08 11:28 T. Schaffner
  2022-11-08 11:28 ` [PATCH 1/2] Check if last partition ends at GPT backup header T. Schaffner
  2022-11-08 11:28 ` [PATCH 2/2] Always try resizing the fs in expand on first boot T. Schaffner
  0 siblings, 2 replies; 8+ messages in thread
From: T. Schaffner @ 2022-11-08 11:28 UTC (permalink / raw)
  To: isar-users; +Cc: henning.schild, Tobias Schaffner

From: Tobias Schaffner <tobias.schaffner@siemens.com>

If the filesystem resize on first boot fails or gets interrupted the service
will not be disabled. But when the script is called on the next boot it will
not try to expand the filesystem as the partition is already expanded.

Check if the partition has to be expanded before expanding it but always try
to resize the filesystem. Leave the decision if the filesystem has to be resized
to the used tool.

Improve the check if we have to expand the partition by calculating the last
usabe block in the GUID table.

Tobias Schaffner (2):
  Check if last partition ends at GPT backup header
  Always try resizing the fs in expand on first boot

 .../files/expand-last-partition.sh            | 54 +++++++++----------
 1 file changed, 25 insertions(+), 29 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-11-09 14:54 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-08 11:28 [PATCH 0/2] expand-on-first-boot: try fs resize on expanded partitions T. Schaffner
2022-11-08 11:28 ` [PATCH 1/2] Check if last partition ends at GPT backup header T. Schaffner
2022-11-09  8:26   ` Henning Schild
2022-11-09  9:40     ` Schaffner, Tobias
2022-11-09 14:54       ` Henning Schild
2022-11-08 11:28 ` [PATCH 2/2] Always try resizing the fs in expand on first boot T. Schaffner
2022-11-09  8:52   ` Henning Schild
2022-11-09 10:11     ` Schaffner, Tobias

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox