We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9f4552b + a325b62 commit 11bc4b1Copy full SHA for 11bc4b1
1 file changed
qubes-rpc/post-install.d/95-fstrim.sh
@@ -6,5 +6,11 @@
6
if [ -f /run/qubes/persistent-full ]
7
then
8
echo "Trimming qube storage. This may take some time..."
9
- fstrim -av
+ if command -v fstrim >/dev/null; then
10
+ fstrim -av
11
+ else
12
+ # /usr/sbin might not be in $PATH, fall back to the absolute path
13
+ # if necessary
14
+ /usr/sbin/fstrim -av
15
+ fi
16
fi
0 commit comments