Menu

#4245 Webmin can't handle Source directive in /etc/network/interfaces

1.630
open
nobody
None
9
2013-05-23
2013-05-22
No

hello

Webmin can't handle the Source directive in /etc/network/interfaces

It is used to load other config files into interfaces.

Failed to save enabled features : Error reading file : unexpected line 'source /etc/network/interfaces-enabled/*.conf '

This error is reported in Virtualmin.
Other modules might also be triggering it.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2013-05-22

    No, that format isn't supported yet.

    Which Linux distribution are you seeing this on?

     
  • Luís Pedro Algarvio

    sorry, forgot to mention

    Debian 7.0
    I'm unsure if Debian 6.0 supports it too, but probably does.

    In CentOS, i'm not aware if the directive is supported, but there is a config file for each interface.

     
  • Luís Pedro Algarvio

    i've supplied sample configuration files with ommited IPs

     
  • Jamie Cameron

    Jamie Cameron - 2013-05-23

    Thanks. Were these config files from a stock install of Debian 7?

    Webmin does support this format on CentOS (because it has always and only ever used a separate file for each interface), but on Debian up till now only a single file has been used.

     
  • Luís Pedro Algarvio

    not from stock, i customized them.

    i was faced a situation where there could be a need to activate/deactivate a particular NIC, or switch from static to DHCP, without rewriting the file, so i searched for a directive.

    so i implemented a debian apache2 alike solution (with interfaces-enabled) and symlinks pointing to interfaces-available, resorting to the source directive

     

Log in to post a comment.