Mount root fs with 'discard' option by default

On LVM thin provisioning this makes manual template's root fs compacting
not needed anymore.

Fixes QubesOS/qubes-issues#2479
This commit is contained in:
Marek Marczykowski-Górecki 2018-01-23 15:10:40 +01:00
parent 0459ba6970
commit c5c4572f80
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -1,7 +1,7 @@
# Accessible filesystems, by reference, are maintained under '/dev/disk' # Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
# #
/dev/mapper/dmroot / ext4 defaults,noatime 1 1 /dev/mapper/dmroot / ext4 defaults,discard,noatime 1 1
/dev/xvdb /rw auto noauto,defaults,discard 1 2 /dev/xvdb /rw auto noauto,defaults,discard 1 2
/rw/home /home none noauto,bind,defaults 0 0 /rw/home /home none noauto,bind,defaults 0 0
/dev/xvdc1 swap swap defaults 0 0 /dev/xvdc1 swap swap defaults 0 0