# List of files which is symlinked to /mnt/data # # This file is just a bash a bash script that is sourced by wb-configs init script # # Following functions are available: # # wb_move - basic variant, moves ${1} to /mnt/data/${2:-$1}, saving backups to ${1}.default # wb_move_nosavefiles - do the same, but don't backup files, only directory structure and symlinks # wb_move_bind - use bind mount instead of symlink # wb_move_bind_nosavefiles - do the same, but don't backup files, only directory structure and symlinks # wb_move_watch - continuously monitor file for changes and copy as needed for f in passwd shadow group gshadow; do wb_move_watch /etc/${f} done # There is a race condition between systemd-udev-trigger.service and mnt-data.mount # which may cause misconfiguration for interfaces with allow-hotplug # which are available on system boot (on-board Wi-Fi, for example). # This problem shoots on WB7 (fast hardware, huh). # So /etc/network/interfaces should be available before /mnt/data settles. wb_move_watch /etc/network/interfaces wb_move /etc/resolv.conf wb_move /etc/ssh wb_move /etc/dnsmasq.conf wb_move /etc/hostapd.conf wb_move /var/lib/wirenboard wb_move /var/lib/mosquitto wb_move /root/ wb_move_nosavefiles /var/cache/apt/ # just fat, move it out wb_move_nosavefiles /var/lib/apt/lists/ # -//- wb_move_nosavefiles /var/www/uploads/ /uploads # here will be firmware updates wb_move /etc/lirc/lircd.conf.d/ wb_move /etc/nginx/passwd wb_move /etc/nginx/sites-enabled/ wb_move /etc/mosquitto/conf.d/ wb_move /etc/mosquitto/passwd/ wb_move /etc/mosquitto/acl/ wb_move_watch /etc/localtime wb_move /etc/NetworkManager/system-connections/