]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fstrim shouldn't run inside a container
authorEric Desrochers <eric.desrochers@canonical.com>
Wed, 14 Aug 2019 16:58:39 +0000 (12:58 -0400)
committerEric Desrochers <eric.desrochers@canonical.com>
Wed, 14 Aug 2019 17:31:25 +0000 (13:31 -0400)
commit0280d31a2bd6292acd9a4b86d0f6b5feb275a618
tree9272be0131f73a166ce904322c56d04edb7280cc
parent050def0f3511f743d948458ecd3fda637168a7c7
fstrim shouldn't run inside a container

Container type implies the following products:
openvz OpenVZ/Virtuozzo
lxc Linux container implementation by LXC
lxc-libvirt Linux container implementation by libvirt
systemd-nspawn systemd's minimal container implementation, see systemd-nspawn(1)
docker Docker container manager
podman Podman container manager
rkt rkt app container runtime
wsl Windows Subsystem for Linux

References:
https://www.freedesktop.org/software/systemd/man/systemd.unit.html
https://www.freedesktop.org/software/systemd/man/systemd-detect-virt.html#

Fix: #840

Signed-off-by: Eric Desrochers <eric.desrochers@canonical.com>
sys-utils/fstrim.service.in
sys-utils/fstrim.timer