]> git.ipfire.org Git - thirdparty/util-linux.git/commit
fstrim: trim also root FS on --fstab
authorKarel Zak <kzak@redhat.com>
Mon, 10 Dec 2018 10:45:03 +0000 (11:45 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 10 Dec 2018 10:45:03 +0000 (11:45 +0100)
commit410d12e5beb78838fc7c6d47d4c433459dc8b857
tree7b4aaab5417c35b8cc1f3d87182da86502eeb879
parent1dae161c839ead8a642b74f432e0f82bb5f5fdd2
fstrim: trim also root FS on --fstab

The root fs ("/") is optional in many case in /etc/fstab. This patch
forces fstrim to read kernel command line for the root= option to get
root FS if the entry is missing in your fstab.

Addresses: https://github.com/karelzak/util-linux/issues/719
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/fstrim.8
sys-utils/fstrim.c