ifupdown-ng / ifupdown-ng

flexible ifup/ifdown implementation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

source-directory fails when directory files are symlinks

kpiq opened this issue · comments

commented

Folks

The source-directory statement in /etc/network/interfaces fails to parse and execute when the files in that source directory are symlinks. My /etc/network/interfaces looks like this:
source-directory /etc/network/interfaces.d
The files in that directory are:
uSysAdm-h2g-mvtp-interfaces -> /usr/local/u/etc/network/interfaces.d/uSysAdm-h2g-mvtp-interfaces
uSysAdm-h2g-vmbr0-interfaces -> /usr/local/u/etc/network/interfaces.d/uSysAdm-h2g-vmbr0-interfaces

The networking.service was succeeding but not executing any of the files in the source-directory. When I changed the souce-directory as follows then it worked:
source-directory /usr/local/u/etc/network/interfaces.d

uname -a
Linux pswsl01 5.18.10-76051810-generic #202207071639165940320722.04cb5f582dev-Ubuntu SMP PREEMPT_DY x86_64 x86_64 x86_64 GNU/Linux

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

apt list --installed ifupdown*
Listing... Done
ifupdown-ng/jammy 0.11.4~rc1-1build1 amd64 [installed]