A file .easyos-bootcnt (with a number that increases by 1 every boot) is appeared in the directory /mnt/wkg.
This file is created or modified by init at boot when the variable TRIMflg is defined (lines 1547 to 1555)
The initialization or not depends of a test on the result of cat /sys/block/${WKG_DRV}/queue/discard_granularity ( lines 1087 to 1092)
In my PC there is no SSD but TRIMflg is initialized to 1.
If the boot count reaches 20 the command fstrim is called by init.
I do not know what would be the effect on a HDD (nor even if the command is executed) but by precaution i will delete .easyos-bootcnt at each boot.