]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/machine-id-setup/machine-id-setup-main.c
dissect-image: port mount_image_privately_interactively() to use /run/systemd/mount...
[thirdparty/systemd.git] / src / machine-id-setup / machine-id-setup-main.c
index 38d66def06254a7f9b95a91ca68b9fb922616a6f..59aad985f8d6ef5f1be640a05dde95cf47e466bc 100644 (file)
@@ -136,7 +136,7 @@ static int parse_argv(int argc, char *argv[]) {
 
 static int run(int argc, char *argv[]) {
         _cleanup_(loop_device_unrefp) LoopDevice *loop_device = NULL;
-        _cleanup_(umount_and_rmdir_and_freep) char *unlink_dir = NULL;
+        _cleanup_(umount_and_freep) char *mounted_dir = NULL;
         int r;
 
         log_parse_environment();
@@ -157,13 +157,13 @@ static int run(int argc, char *argv[]) {
                                 DISSECT_IMAGE_RELAX_VAR_CHECK |
                                 DISSECT_IMAGE_FSCK |
                                 DISSECT_IMAGE_GROWFS,
-                                &unlink_dir,
+                                &mounted_dir,
                                 /* ret_dir_fd= */ NULL,
                                 &loop_device);
                 if (r < 0)
                         return r;
 
-                arg_root = strdup(unlink_dir);
+                arg_root = strdup(mounted_dir);
                 if (!arg_root)
                         return log_oom();
         }