pc_engines_apu_centos_7
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
pc_engines_apu_centos_7 [2014/12/27 13:17] – [Preparation] admin | pc_engines_apu_centos_7 [2014/12/27 13:34] – [Preparation] admin | ||
---|---|---|---|
Line 91: | Line 91: | ||
# Mount /tmp as tmpfs. | # Mount /tmp as tmpfs. | ||
echo "tmpfs /tmp tmpfs size=64m 0 0" >> /etc/fstab | echo "tmpfs /tmp tmpfs size=64m 0 0" >> /etc/fstab | ||
+ | |||
+ | #Add weekly fstrim job | ||
+ | cat << EOF > / | ||
+ | #!/bin/sh | ||
+ | #this script will run weekly, will overwrite log. | ||
+ | |||
+ | trimlog=/ | ||
+ | echo > \$trimlog | ||
+ | for mount in \`lsblk -ro " | ||
+ | printf " | ||
+ | done | ||
+ | EOF | ||
+ | chmod +x / | ||
# Enable LVM to issue discards. | # Enable LVM to issue discards. |
pc_engines_apu_centos_7.txt · Last modified: 2021/10/09 15:14 by 127.0.0.1