/usr/share/ltsp/ltsp_config.d/debian-edu-config-rwbind is in debian-edu-config 1.702.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | echo "starting rwbind $0"
# Avoid setting these if the bind mounting is already done.
if touch /var/lib/ntp > /dev/null 2>&1; then
:
else
# Add these for a all edu clients
# Make sure hald can write to the directories it is using
rw_dirs="$rw_dirs /var/cache/hald"
# Make sure NTP is able to update its drift file
rw_dirs="$rw_dirs /var/lib/ntp"
# Make sure rpc.statd can work
copy_dirs="$copy_dirs /var/lib/nfs"
# FIXME Note that this grep do not work when it is needed, because
# /proc/ is not mounted yet. The consequence is that a few more
# bind mounts are done on thin clients, which can be ignored.
if grep -qw 4 /proc/cmdline > dev/null 2>&1 ; then
:
else
# Add these for diskless workstations
# Make sure udev can write to the directories it is using
rw_dirs="$rw_dirs /var/lib/dbus /media"
# ntpd requires rw access to /var/log/ntpstats
# WARNING: this is currently disabled as ntpd will constantly write to /var/log/ntpstats
# and consume diskless workstation RAM... investigating on a solution for that
#rw_dirs="$rw_dirs /var/log/ntpstats"
# ALSA utils tries to store asound.state here on shutdown
rw_dirs="$rw_dirs /var/lib/alsa"
# Make sure resolvconf can write to the directories it is using
if [ -d /etc/resolvconf/run ] ; then
rw_dirs="$rw_dirs /etc/resolvconf/run"
fi
# Make sure GDM is able to do its config
if [ -d /var/lib/gdm ] ; then
rw_dirs="$rw_dirs /var/lib/gdm"
fi
# Make sure rwhod can work
rw_dirs="$rw_dirs /var/spool/rwho"
# Make sure acpi-support installed on laptops can save the
# files it want to save during boot
if [ -d /var/lib/acpi-support ] ; then
rw_dirs="$rw_dirs /var/lib/acpi-support"
fi
# Make sure ifupdown can work
rw_dirs="$rw_dirs /etc/network/run"
fi
fi
echo "ending rwbind $0"
|