summaryrefslogtreecommitdiffstats
path: root/src/sysupdate/sysupdate-resource.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-08-27 22:56:25 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-08-28 03:10:50 +0200
commitca8228295ec20e561119729a2cf117e4531d7f56 (patch)
treed31f8189834a0f126b68dcdb976b66bd4ffdbd23 /src/sysupdate/sysupdate-resource.c
parentsd-device: skip to check diskseq if device is not initialized (diff)
downloadsystemd-ca8228295ec20e561119729a2cf117e4531d7f56.tar.xz
systemd-ca8228295ec20e561119729a2cf117e4531d7f56.zip
tree-wide: use devpath_from_devnum() and device_open_from_devnum()
Fixes #24465.
Diffstat (limited to 'src/sysupdate/sysupdate-resource.c')
-rw-r--r--src/sysupdate/sysupdate-resource.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysupdate/sysupdate-resource.c b/src/sysupdate/sysupdate-resource.c
index 359b80ac1c..2a2fb29c20 100644
--- a/src/sysupdate/sysupdate-resource.c
+++ b/src/sysupdate/sysupdate-resource.c
@@ -7,7 +7,7 @@
#include "alloc-util.h"
#include "blockdev-util.h"
#include "chase-symlinks.h"
-#include "devnum-util.h"
+#include "device-util.h"
#include "dirent-util.h"
#include "env-util.h"
#include "fd-util.h"
@@ -608,7 +608,7 @@ int resource_resolve_path(
return log_error_errno(SYNTHETIC_ERRNO(EINVAL),
"File system is not placed on a partition block device, cannot determine whole block device backing root file system.");
- r = device_path_make_canonical(S_IFBLK, d, &p);
+ r = devpath_from_devnum(S_IFBLK, d, &p);
if (r < 0)
return r;