growfs: Expand FS even if underlying block expansion fails
authorundef <gitlab@undef.tools>
Thu, 14 Jul 2022 09:03:28 +0000 (09:03 +0000)
committerLennart Poettering <lennart@poettering.net>
Thu, 14 Jul 2022 16:13:23 +0000 (18:13 +0200)
commite9a28b8ccd3352da3e0a75a18fc1185e52476a80
treea14d11a59c2c0c5ebb70055e45e829a5035298d9
parent0541980587d56d8e14b8d29eedbcfb7be067ac40
growfs: Expand FS even if underlying block expansion fails

This allows growfs to expand the filesystem even when the underlying
block device cannot be expanded. This has been useful for example on
LUKS devices that have already been expanded using systemd-repart.

This works around the following error:
```
root@mobian:/home/mobian# /usr/lib/systemd/systemd-growfs /
crypt_resize() of /dev/block/179:2 failed: Operation not permitted
```
src/partition/growfs.c