From 181c86888ad1da53416cfc239bf419d49697f476 Mon Sep 17 00:00:00 2001 From: Tommy Date: Mon, 31 Oct 2022 20:32:22 -0400 Subject: [PATCH] Enabling discard and fstrim Signed-off-by: Tommy --- dom0.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/dom0.sh b/dom0.sh index 505416f..93f7d87 100644 --- a/dom0.sh +++ b/dom0.sh @@ -26,4 +26,8 @@ echo "@anyvm @anyvm ask,default_target=vault" | sudo tee /etc/qubes-rpc/policy/ #Enabling VMAuth - if you want to get the prompt you will still need to configure the guest VMs tho echo "/usr/bin/echo 1" | sudo tee /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 \ No newline at end of file +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