esp partitions should be mounted with "discard" option where applicable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
partman-efi (Ubuntu) |
Triaged
|
Wishlist
|
Unassigned |
Bug Description
This is a bug report / feature request about Ubuntu installations created by either the Ubuntu Desktop or Server (both 'live' and classic/
Currently, when you install any variant of Ubuntu to a storage type which supports TRIM (discards), the following is placed in /etc/fstab:
UUID=1234-ABCD /boot/efi vfat umask=0077 0 1
However, since the fstrim command cannot handle vfat file systems (and vfat file systems are thus not handled by /etc/cron.
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: ubiquity (not installed)
ProcVersionSign
Uname: Linux 4.15.0-23-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: amd64
CurrentDesktop: XFCE
Date: Sat Jun 30 10:26:09 2018
InstallCmdLine: BOOT_IMAGE=
InstallationDate: Installed on 2017-04-29 (426 days ago)
InstallationMedia: Ubuntu-Server 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.8)
SourcePackage: ubiquity
UpgradeStatus: No upgrade log present (probably fresh install)
What would be the point? After the system is installed, the ESP isn't really ever written to again so there isn't anything that really needs discarded. It's also rather small, so if there was anything that could be discarded, it wouldn't be much.