]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fstrim: do not start the timer in initrd
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 21 May 2021 08:45:35 +0000 (10:45 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 21 May 2021 08:45:35 +0000 (10:45 +0200)
commitcacd3e768516383424fc848532d32815bb18bfec
tree9932afa62b67c454157ae211e5acdc82136f8038
parent6dfa12395ec052b0adb0dee7865abdb32943e898
fstrim: do not start the timer in initrd

I'm working on building initramfs images directly from normal
packages, which means that the pristine system rpms should behave
correctly as much as possible also in the initrd. There usually isn't
enough time for the timer to actually fire, but starting it gives a
line on the console and generally looks confusing and sloppy. So let's
skip the timer if it ever ends up being enabled in the initrd.

Checking for /etc/initrd-release is the standard condition that
systemd's initrd units use.
sys-utils/fstrim.timer