Re: r38572 - in trunk/src/debian-edu-config: debian sbin
[Daniel Hess]
> We need to replace the symlink from /etc/mtab to /proc/mounts with
> something containing the data of /proc/mounts initially and then is
> writeable. Bindmounts on top of symlinks don't seem to work.
>
> Maybe be could bindmount subdirds to the directory we bindmount
> later on top of /etc, than we don't need to copy the whole thing.
Hm. It is not enough to have /etc/mtab writable (I tried). Mount
will try to create /etc/mtab~, and this require /etc/ to be writable
too. mtab~ can not be a symlink to a writable area (I tried this
too), nor can it be a bind-mount because it is used as a lock to make
sure only one mount command is running.
What about modifying the mount command to be able to write its files
to /var/run/ or /var/lock/ instead?
>> If there isn't, it is probably better to use the normal LTSP features
>> to list /etc/ in $rw_dirs in /opt/ltsp/i386/etc/default/ltsp-client-setup.
>
> This would enable it by default, even on normal thinclients, that
> normally could coexist to diskless workstations.
Good point.
Happy hacking,
--
Petter Reinholdtsen
Reply to: