diff --git a/install_server.sh b/install_server.sh index dc4a2bb..65fb11c 100755 --- a/install_server.sh +++ b/install_server.sh @@ -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 diff --git a/installation/fstab b/installation/fstab new file mode 100644 index 0000000..2effb2e --- /dev/null +++ b/installation/fstab @@ -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 +