Skip to content
Snippets Groups Projects
Commit 42d5bc93 authored by Bob Mottram's avatar Bob Mottram
Browse files

Move tmp to a ramdisk

parent 8f11ab21
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,17 @@ function detect_usb_drive {
write_config_param USB_DRIVE "$USB_DRIVE"
}
function separate_tmp_filesystem {
tmp_filesystem_size_mb=$1
if [ ! -d /tmp ]; then
mkdir -p /tmp
fi
if ! grep -q '/tmp' /etc/fstab; then
mount -t tmpfs -o size=${tmp_filesystem_size_mb}m tmpfs /tmp
echo "tmpfs /tmp tmpfs nodev,nosuid,noexec,nodiratime,size=${tmp_filesystem_size_mb}M 0 0" >> /etc/fstab
fi
}
function remove_bluetooth {
rmmod -f bnep
rmmod -f bluetooth
......@@ -549,6 +560,9 @@ function setup_utils {
read_config_param "PROJECT_REPO"
write_config_param "PROJECT_REPO" "$PROJECT_REPO"
function_check separate_tmp_filesystem
separate_tmp_filesystem 20
function_check disable_null_passwords
disable_null_passwords
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment