growfs: don't actually resize on dry-run
authorundef <gitlab@undef.tools>
Thu, 14 Jul 2022 05:53:15 +0000 (05:53 +0000)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 14 Jul 2022 12:23:11 +0000 (21:23 +0900)
commitd26c0f7243a709cfa7b8bdc87e8131746bb0e2d0
treec67a488ad11f706dd4f00c40aecf54b8ffd7eecd
parent8c776523348205ca22263138cbc612516987a9b8
growfs: don't actually resize on dry-run

This causes systemd-growfs to exit before resizing the partition when
`--dry-run` is passed. Resizing during a dry run of a change breaks the
users expectations.
src/partition/growfs.c