]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/dissect-image.c
dissect: look for new GPT partition flag marking partitions for growing
authorLennart Poettering <lennart@poettering.net>
Wed, 21 Apr 2021 14:17:44 +0000 (16:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 23 Apr 2021 15:55:45 +0000 (17:55 +0200)
commitde98f63140fd55d8639011c25a44b7b10fcccf29
treee70018880fc928a5cc878e09605dd25468aeb635
parent778139c6e45e6948f90f5aa7056f6a7a8bced1bc
dissect: look for new GPT partition flag marking partitions for growing

systemd-repart can grow partitions dynamically at boot, but it won't
grow the file systems inside them. In /etc/fstab you can request that
via x-systemd.growfs. So far we didn't have a nice scheme for images
with GPT auto-discovery however, and that meant in particular in tools
such as systemd-nspawn the file systems couldn't be grown automatically.

Let's address this: let's define a new GPT partition flag that can be
set for our partition types. If set it indicates that the file system
should be grown to the partition size on mount.

This commit adds the flag and adds code to discover it when dissecting
images. There's no code yet to actually do something about it.
src/shared/dissect-image.c
src/shared/dissect-image.h
src/shared/gpt.h