diff options
author | Devendra Tewari <devendra.tewari@gmail.com> | 2022-08-24 07:13:04 -0300 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2022-08-24 21:42:16 +0100 |
commit | aa181897cf189263e2786d8a184918442e52ee1a (patch) | |
tree | 7bdf376c6aadc257e62bef364743fee273682035 /src/partition/growfs.c | |
parent | 782c6e5c9050ba2de141906732e0a7e14b0c1550 (diff) | |
download | systemd-aa181897cf189263e2786d8a184918442e52ee1a.tar.gz |
systemd-growfs: remove dependency on udev symlinks
systemd-growfs currently requires that udev ran first to work (because
/dev/block/ symlinks must exist) but that is not what happens when
we're not using initrd and systemd is PID1.
Diffstat (limited to 'src/partition/growfs.c')
-rw-r--r-- | src/partition/growfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/partition/growfs.c b/src/partition/growfs.c index e105c0e151..e940dccd48 100644 --- a/src/partition/growfs.c +++ b/src/partition/growfs.c @@ -41,7 +41,7 @@ static int resize_crypt_luks_device(dev_t devno, const char *fstype, dev_t main_ if (r < 0) return log_error_errno(r, "Cannot resize LUKS device: %m"); - r = device_path_make_major_minor(S_IFBLK, main_devno, &main_devpath); + r = device_path_make_major_minor_sysfs(S_IFBLK, main_devno, &main_devpath); if (r < 0) return log_error_errno(r, "Failed to format device major/minor path: %m"); @@ -54,7 +54,7 @@ static int resize_crypt_luks_device(dev_t devno, const char *fstype, dev_t main_ main_devpath); log_debug("%s is %"PRIu64" bytes", main_devpath, size); - r = device_path_make_major_minor(S_IFBLK, devno, &devpath); + r = device_path_make_major_minor_sysfs(S_IFBLK, devno, &devpath); if (r < 0) return log_error_errno(r, "Failed to format major/minor path: %m"); @@ -115,7 +115,7 @@ static int maybe_resize_underlying_device( if (devno == main_devno) return 0; - r = device_path_make_major_minor(S_IFBLK, devno, &devpath); + r = device_path_make_major_minor_sysfs(S_IFBLK, devno, &devpath); if (r < 0) return log_error_errno(r, "Failed to format device major/minor path: %m"); @@ -237,7 +237,7 @@ static int run(int argc, char *argv[]) { if (r < 0) 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); + r = device_path_make_major_minor_sysfs(S_IFBLK, devno, &devpath); if (r < 0) return log_error_errno(r, "Failed to format device major/minor path: %m"); |