[elbe-users] replacing /etc/resolv.conf with a symlink
Ralf Schlatterbeck
rsc at runtux.com
Wed Nov 20 10:08:26 CET 2019
On Tue, Nov 19, 2019 at 02:48:54PM -0500, Olivier Dion wrote:
> > > - I have a debian package "iptna" that contains > /etc/resolv.conf as
> > a
> > > symlink
> > > - I have a finetuning rule (that I find nowhere in the log):
> > > <command>ln -sf /ipCAT.runtime/etc/resolv.conf > /etc</command>
> > > - Both should create the symlink but don't
> > >
> > > But resolv.conf ends up as a file containing just the line:
> > >
> > > nameserver 10.0.2.3
>
> > I've found a workaround, if I put the symlink into the archive attached
> > to the elbe XML file, the symlink is correctly created. But why don't
> > all the other methods work for resolv.conf?
>
> Don't use the <command> action but the <ln> action instead.
>
> The reason why this is important is because the <ln> action will protect the
> created symlink from being reverted to the original. The <command> action
> does not.
> Let me know if that work for you.
This worked!
Thanks for the explanation.
Is there some documentation to more closely explain the individual
finetuning actions? I've found no such warning in the docs, maybe it
should be added.
Ralf
--
Dr. Ralf Schlatterbeck Tel: +43/2243/26465-16
Open Source Consulting www: http://www.runtux.com
Reichergasse 131, A-3411 Weidling email: office at runtux.com
More information about the elbe-users
mailing list