[PVE-User] Allow persistant changes in container system files

Mikhail m at plus-plus.su
Thu Feb 18 16:20:58 CET 2016


On 02/17/2016 09:08 PM, Geminux wrote:
> Hi all,
> 
> I have to set some custom options in /etc/resolv.conf in a LXC container
> (i.e "domain sub.domain.tld").
> 
> I noticed that any changes are overwritten upon container reboot.
> Is there a way to do that ?
> 
> Thanks

Try setting up IMMUTABLE attribute to the file within container -

# chattr +i /etc/resolv.conf

This will prevent system from modifying this file until IMMUTABLE flag
is unset.






More information about the pve-user mailing list