feat: workaround for trimming physical root block device (#2734)

* feat: workaround for trimming physical root block device

https://github.com/fedora-silverblue/issue-tracker/issues/689

* add ExecStart

because this is a oneshot, this would execute the old upstream fstrim
command first and the patched one from us after that.

Co-authored-by: Aman Verma <code@averms.org>

---------

Co-authored-by: Aman Verma <code@averms.org>
This commit is contained in:
renner 2026-08-19 20:34:48 +00:00 committed by GitHub
parent d85c9c22e7
commit cfc48059ae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,7 @@
[Unit]
Description=Discard unused blocks on mounted filesystems
Documentation=man:fstrim(8) https://forge.fedoraproject.org/atomic/tracker/issues/81
[Service]
ExecStart=
ExecStart=/usr/bin/fstrim --listed-in /proc/self/mountinfo --verbose --quiet-unsupported