diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-09-22 16:32:07 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-09-23 18:57:36 +0200 |
commit | 30f5d10421e6b1a22cf5d707a9c90c32914bce6b (patch) | |
tree | e12688a4e9874039917ada0f25159f7b0f7aeb30 /src/volatile-root/volatile-root.c | |
parent | mount-util: switch most mount_verbose() code over to not follow symlinks (diff) | |
download | systemd-30f5d10421e6b1a22cf5d707a9c90c32914bce6b.tar.xz systemd-30f5d10421e6b1a22cf5d707a9c90c32914bce6b.zip |
mount-util: rework umount_verbose() to take log level and flags arg
Let's make umount_verbose() more like mount_verbose_xyz(), i.e. take log
level and flags param. In particular the latter matters, since we
typically don't actually want to follow symlinks when unmounting.
Diffstat (limited to '')
-rw-r--r-- | src/volatile-root/volatile-root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/volatile-root/volatile-root.c b/src/volatile-root/volatile-root.c index 35c045630f..04c371077a 100644 --- a/src/volatile-root/volatile-root.c +++ b/src/volatile-root/volatile-root.c @@ -107,7 +107,7 @@ static int make_overlay(const char *path) { finish: if (tmpfs_mounted) - (void) umount_verbose("/run/systemd/overlay-sysroot"); + (void) umount_verbose(LOG_ERR, "/run/systemd/overlay-sysroot", UMOUNT_NOFOLLOW); (void) rmdir("/run/systemd/overlay-sysroot"); return r; |