mirror of
https://github.com/systemd/systemd.git
synced 2025-01-25 10:04:04 +03:00
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 ```
This commit is contained in:
parent
0541980587
commit
e9a28b8ccd
@ -235,7 +235,7 @@ static int run(int argc, char *argv[]) {
|
||||
|
||||
r = maybe_resize_underlying_device(mountfd, arg_target, devno);
|
||||
if (r < 0)
|
||||
return r;
|
||||
log_warning_errno(r, "Unable to resize underlying device of \"%s\", proceeding anyway: %m", arg_target);
|
||||
|
||||
r = device_path_make_major_minor(S_IFBLK, devno, &devpath);
|
||||
if (r < 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user