Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
freedombone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Context Sensitive Group
freedombone
Commits
bc740ddb
Unverified
Commit
bc740ddb
authored
8 years ago
by
Bob Mottram
Browse files
Options
Downloads
Patches
Plain Diff
mesh peer tmp directory in a ram disk
parent
b51b69a1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/freedombone-image-mesh
+18
-3
18 additions, 3 deletions
src/freedombone-image-mesh
with
18 additions
and
3 deletions
src/freedombone-image-mesh
+
18
−
3
View file @
bc740ddb
...
...
@@ -59,6 +59,9 @@ FIRST_BOOT=/home/$MY_USERNAME/.first_boot
# Tomb containing logs
TOMB_LOG_SIZE_MB
=
10
# tmp directory
TOMB_TMP_SIZE_MB
=
10
# size of the tomb used to store qtox settings
TOMB_TOX_SIZE_MB
=
10
...
...
@@ -106,6 +109,17 @@ function create_ram_disk {
fi
}
function
tmp_ram_disk
{
ramdisk_size_mb
=
$1
if
[
!
-d
/tmp
]
;
then
mkdir
-p
/tmp
fi
if
!
grep
-q
'/tmp'
/etc/fstab
;
then
mount
-t
tmpfs
-o
size
=
${
ramdisk_size_mb
}
m tmpfs /tmp
echo
"tmpfs /tmp tmpfs nodev,nosuid,noexec,nodiratime,size=
${
ramdisk_size_mb
}
M 0 0"
>>
/etc/fstab
fi
}
function
set_hostname
{
DEFAULT_DOMAIN_NAME
=
"
$1
"
...
...
@@ -565,10 +579,11 @@ if [ -f $MESH_INSTALL_SETUP ]; then
chown
${
MY_USERNAME
}
:
${
MY_USERNAME
}
/home/
$MY_USERNAME
/.config
fi
tomb slam all
#tomb slam all
tmp_ram_disk 10
enable_batman_daemon
create_ram_disk 1
setup_amnesic_data
#
create_ram_disk 1
#
setup_amnesic_data
change_avahi_name
configure_toxcore
create_tox_user
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment