[OpenWrt-Devel] [RFC PATCH 00/10] make symlink /var to /tmp optional

Stijn Tintel stijn at linux-ipv6.be
Mon Mar 28 13:51:39 EDT 2016


When running OpenWrt on devices with a lot of storage, it might be
desirable not to have /var completely on tmpfs.

This patch series adds an option to make symlinking /var to /tmp
optional. If the option is disabled, /var/run will be symlinked to
/tmp/run so that it will still be on tmpfs.

As some init scripts generate a config file in /var/etc, change those
init scripts to generate it in /tmp/etc instead.

While at it, create /tmp/etc in /etc/init.d/boot instead of creating it
in various init scripts.

Stijn Tintel (10):
  base-files: create /tmp/etc on boot
  dnsmasq: generate config in /tmp/etc
  igmpproxy: generate config in /tmp/etc
  igmpproxy: /tmp/etc is created in /etc/init.d/boot
  openvpn: generate config in /tmp/etc
  openvpn: /tmp/etc is created in /etc/init.d/boot
  openvpn: /var/run is created in /etc/init.d/boot
  samba36: generate config in /tmp/etc
  samba36: /tmp/etc is created in /etc/init.d/boot
  base-files: add option to symlink /var to /tmp

 config/Config-images.in                             |  5 +++++
 package/base-files/Makefile                         |  5 +++++
 package/base-files/files/etc/init.d/boot            |  1 +
 package/network/services/dnsmasq/files/dnsmasq.init |  2 +-
 .../network/services/igmpproxy/files/igmpproxy.init | 13 ++++++-------
 package/network/services/openvpn/files/openvpn.init | 13 +++++--------
 package/network/services/samba36/files/samba.init   | 21 ++++++++++-----------
 7 files changed, 33 insertions(+), 27 deletions(-)

-- 
2.7.3
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list