diff --git a/src/partition/growfs.c b/src/partition/growfs.c index 31dcf0ffdf..d9603d2b6d 100644 --- a/src/partition/growfs.c +++ b/src/partition/growfs.c @@ -241,6 +241,10 @@ static int run(int argc, char *argv[]) { return log_error_errno(errno, "Failed to query size of \"%s\": %m", devpath); log_debug("Resizing \"%s\" to %"PRIu64" bytes...", arg_target, size); + + if (arg_dry_run) + return 0; + r = resize_fs(mountfd, size, &newsize); if (r < 0) return log_error_errno(r, "Failed to resize \"%s\" to %"PRIu64" bytes: %m",