I'm making an Ubuntu derivative, and I want to make noatime the default mount option for all filesystems (instead of relatime which is default in Ubuntu).
There seems to be a boolean default_relatime
kernel parameter for switching between defaulting to atime or relatime (also available by writing to /proc/sys/kernel/default_relatime), but I can't find an equivalent for noatime and I don't know how to enable that in a distro by default.
How to configure to record data to pendrive instantly? suggests that there's a way to add noatime mount parameter via udev, but I have no idea if that will work for internal media and how to do it.
What's the least invasive way to make the kernel default to noatime?
Current default can be viewed using "cat /proc/mounts" because it shows even implicit mount parameters; don't trust "mount".
Yes, I've read Is it worth to tune Ext4 with noatime? and I still want to do it.
/etc/fstab
.