Some filesystem optimisations for btrfs
This commit is contained in:
parent
dfb24fdba0
commit
81e06abc20
|
@ -1224,8 +1224,8 @@ function image_setup_utils {
|
|||
fi
|
||||
chroot "$rootdir" apt-get -yq install tripwire
|
||||
|
||||
# mirroring
|
||||
# cmake
|
||||
# filesystem optimisations
|
||||
sed -i 's|btrfs subvol=@|btrfs defaults,subvol=@,compress=lzo,ssd|g' $rootdir/etc/fstab
|
||||
}
|
||||
|
||||
function image_install_nodejs {
|
||||
|
|
|
@ -123,4 +123,8 @@ function defrag_filesystem {
|
|||
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
|
||||
|
|
|
@ -663,6 +663,9 @@ function setup_utils {
|
|||
function_check separate_tmp_filesystem
|
||||
separate_tmp_filesystem 150
|
||||
|
||||
function_check optimise_filesystem
|
||||
optimise_filesystem
|
||||
|
||||
function_check disable_null_passwords
|
||||
disable_null_passwords
|
||||
|
||||
|
|
Loading…
Reference in New Issue