mirror of
https://github.com/systemd/systemd.git
synced 2024-11-01 09:21:26 +03:00
repart: slightly improve error message if partition is not on dm-crypt/dm-verity
This commit is contained in:
parent
0efb3f83da
commit
8e5f3cecdf
@ -3885,7 +3885,9 @@ static int acquire_root_devno(const char *p, int mode, char **ret, int *ret_fd)
|
||||
|
||||
/* From dm-crypt to backing partition */
|
||||
r = block_get_originating(devno, &devno);
|
||||
if (r < 0)
|
||||
if (r == -ENOENT)
|
||||
log_debug_errno(r, "Device '%s' has no dm-crypt/dm-verity device, no need to look for underlying block device.", p);
|
||||
else if (r < 0)
|
||||
log_debug_errno(r, "Failed to find underlying block device for '%s', ignoring: %m", p);
|
||||
|
||||
/* From partition to whole disk containing it */
|
||||
|
Loading…
Reference in New Issue
Block a user