Commit a2bbc27a authored by Benjamin Slade's avatar Benjamin Slade

fixes to autotrim-related issues in scripts

parent a31de8e6
......@@ -10,7 +10,7 @@ read -p "Enter the device you want to install to [/dev/sda]: " DEVICE
# determine if device is SSD or not
ROTATIONAL=`cat /sys/block/"${testpath#/dev/}"/queue/rotational`
ROTATIONAL=`cat /sys/block/"${DEVICE#/dev/}"/queue/rotational`
read -p "Enter the name to assign to the LUKS partition [cryptz]: " LUKSNAME
......@@ -106,7 +106,7 @@ echo "Setting zpool cachefile for ${ZPOOLNAME}."
zpool set cachefile=/etc/zfs/zpool.cache ${ZPOOLNAME} # IMPORTANT
# setting autotrim feature
if [ ${ROTATIONAL} == 0 ]
if [[ ${ROTATIONAL} == 0 ]]
read -p "You appear to be running an SSD. You can set up automatic TRIM for better wear-levelling performance. (You can always turn this feature on/off later, or handle TRIM manually.)
Note that minimal data leakage in the form of freed block information, perhaps sufficient to determine the filesystem in use, may occur on LUKS-encrypted devices with TRIM enabled ( see for more information ).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment