install tmpfs added in install_server bash and fstab file added to installation

This commit is contained in:
Your Name 2019-05-12 12:56:11 +02:00
parent 81aeb6be27
commit 53c157d023
2 changed files with 13 additions and 0 deletions

View File

@ -11,6 +11,10 @@ service munin-node restart
# Disable internal sound
echo "blacklist snd_bcm2835" > /etc/modprobe.d/internalsnd-blacklist.conf
#setup tmpfs
echo "d /var/log/supervisor 0777 root root" > /etc/tmpfiles.d/supervisor.conf
cp installation/fstab /etc/fstab
# Added chown=pi:pi
cp installation/supervisord.conf /etc/supervisor/supervisord.conf
ln -s /home/pi/hugvey/supervisor.conf /etc/supervisor/conf.d/hugvey.conf

9
installation/fstab Normal file
View File

@ -0,0 +1,9 @@
proc /proc proc defaults 0 0
PARTUUID=61a67ebb-01 /boot vfat defaults 0 2
PARTUUID=61a67ebb-02 / ext4 defaults,noatime 0 1
# a swapfile is not a swap partition, no line here
# use dphys-swapfile swap[on|off] for that
#change /tmp and var log to tmpfs
tmpfs /tmp tmpfs rw,nosuid,nodev 0 0
tmpfs /var/log tmpfs rw,nosuid,nodev 0 0