Open dpgeekzero opened 5 years ago
I'd be hesitant to use -a
since that may trim filesystems that user does not want trimmed, but yeah, this shouldn't error. Perhaps the unit should have a ConditionPathExists=/etc/fstab
instead?
If entries /etc/fstab
have a special meaning, then should the file have been removed?
/etc/fstab
doesn't really have special meaning. Systemd doesn't even use it directly, a generator reads it and generates mount units which systemd then uses. The default filesystems for CL have their own mount units which means /etc/fstab
isn't needed by default.
I'm not sure where this unit is coming from and who is consuming it, but another option is to make a templated unit and use %I
as the mountpoint arg from the instantiated service.
Issue Report
Bug
Container Linux Version
Environment
Dell PowerEdge R640
Expected Behavior
Actual Behavior
Reproduction Steps
Other Information
Newer builds of Container Linux do not populate the /etc/fstab file, so the fstrim.service should be updated.
The ExecStart for fstrim.service is
ExecStart=/sbin/fstrim -Av
. It should probably be changed toExecStart=/sbin/fstrim -av