diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-05-15 11:49:48 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-05-16 09:26:17 +0200 |
commit | a4b3e9423696f604be33b4ab93c4bb5c6c807554 (patch) | |
tree | ad5fcdca2f8f8f6e824232a86992ec84fa279150 /src/systemctl/systemctl.c | |
parent | pid1: port unit namespacing to new /run/systemd/mount-rootfs dir (diff) | |
download | systemd-a4b3e9423696f604be33b4ab93c4bb5c6c807554.tar.xz systemd-a4b3e9423696f604be33b4ab93c4bb5c6c807554.zip |
dissect-image: port mount_image_privately_interactively() to use /run/systemd/mount-rootfs/ too
Let's use the same common directory as the unit logic uses.
This means we have less to clean up, and opens the door to eventually
allow unprivileged operation of the
mount_image_privately_interactively() logic.
Diffstat (limited to 'src/systemctl/systemctl.c')
-rw-r--r-- | src/systemctl/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 71c068b09e..b31a59785b 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -1224,7 +1224,7 @@ static int systemctl_main(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 *mounted_dir = NULL; + _cleanup_(umount_and_freep) char *mounted_dir = NULL; int r; setlocale(LC_ALL, ""); |