Some filesystem optimisations for btrfs

This commit is contained in:
Bob Mottram 2017-06-17 12:26:00 +01:00
parent dfb24fdba0
commit 81e06abc20
3 changed files with 9 additions and 2 deletions

View File

@ -1224,8 +1224,8 @@ function image_setup_utils {
fi fi
chroot "$rootdir" apt-get -yq install tripwire chroot "$rootdir" apt-get -yq install tripwire
# mirroring # filesystem optimisations
# cmake sed -i 's|btrfs subvol=@|btrfs defaults,subvol=@,compress=lzo,ssd|g' $rootdir/etc/fstab
} }
function image_install_nodejs { function image_install_nodejs {

View File

@ -123,4 +123,8 @@ function defrag_filesystem {
echo $'Defragmentation completed' echo $'Defragmentation completed'
} }
function optimise_filesystem {
sed -i 's|btrfs subvol=@|btrfs defaults,subvol=@,compress=lzo,ssd|g' /etc/fstab
}
# NOTE: deliberately no exit 0 # NOTE: deliberately no exit 0

View File

@ -663,6 +663,9 @@ function setup_utils {
function_check separate_tmp_filesystem function_check separate_tmp_filesystem
separate_tmp_filesystem 150 separate_tmp_filesystem 150
function_check optimise_filesystem
optimise_filesystem
function_check disable_null_passwords function_check disable_null_passwords
disable_null_passwords disable_null_passwords