summaryrefslogtreecommitdiff
path: root/src/machine-id-setup
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-04-21 16:46:56 +0200
committerLennart Poettering <lennart@poettering.net>2021-04-23 17:56:51 +0200
commitc65f854af628fbe04b087179c4e660fcc0a817a1 (patch)
treef87dc0943ca6d8bab6bea434e861b8a26bf02e25 /src/machine-id-setup
parent74a54baeecfeb7bb4bcd06b16110e58812e2f037 (diff)
downloadsystemd-c65f854af628fbe04b087179c4e660fcc0a817a1.tar.gz
tree-wide: enable automatic growing of file systems in images in various tools that deal with OS images
Let's enable this in all tools that intend to write to the OS images. It's not conditionalized for now, as there already is conditionalization in the existance or absence of the flag in the GPT partition table (and it's opt-in), hence it should be OK to just enable this by default for now if the flag is set.
Diffstat (limited to 'src/machine-id-setup')
-rw-r--r--src/machine-id-setup/machine-id-setup-main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/machine-id-setup/machine-id-setup-main.c b/src/machine-id-setup/machine-id-setup-main.c
index 9539c39c4e..5af6bfeafe 100644
--- a/src/machine-id-setup/machine-id-setup-main.c
+++ b/src/machine-id-setup/machine-id-setup-main.c
@@ -146,7 +146,8 @@ static int run(int argc, char *argv[]) {
DISSECT_IMAGE_REQUIRE_ROOT |
DISSECT_IMAGE_VALIDATE_OS |
DISSECT_IMAGE_RELAX_VAR_CHECK |
- DISSECT_IMAGE_FSCK,
+ DISSECT_IMAGE_FSCK |
+ DISSECT_IMAGE_GROWFS,
&unlink_dir,
&loop_device,
&decrypted_image);