Enabling discard and fstrim

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2022-10-31 20:32:22 -04:00 committed by GitHub
parent 37c98cb5da
commit 181c86888a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,3 +27,7 @@ echo "@anyvm @anyvm ask,default_target=vault" | sudo tee /etc/qubes-rpc/policy/
echo "/usr/bin/echo 1" | sudo tee /etc/qubes-rpc/qubes.VMAuth echo "/usr/bin/echo 1" | sudo tee /etc/qubes-rpc/qubes.VMAuth
sudo chmod u+x /etc/qubes-rpc/qubes.VMAuth sudo chmod u+x /etc/qubes-rpc/qubes.VMAuth
echo "@anyvm dom0 ask,default_target=dom0" | sudo tee /etc/qubes-rpc/policy/qubes.VMAuth echo "@anyvm dom0 ask,default_target=dom0" | sudo tee /etc/qubes-rpc/policy/qubes.VMAuth
#Enabling discard and fstrim
sudo sed -i 's/issue_discards = 0/issue_discards = 1/g' /etc/lvm/lvm.conf
sudo systemctl enable fstrim.timer