Debian: How to move /etc/network/interfaces into the data partition


  • Debian
  • systemd
  • The network configuration is defined by /etc/network/interfaces

The Problem:

When working with a symbolic link to a file in the data partition, the interface is not turned up.
Trying to add “requires” in ifup@.service on “” does not help.
Doing either of the following commands works.

/sbin/ifup eno1
sudo systemctl start ifup@eno1

The difference of “systemctl --all” command output between with the real file and with the link is only “ifup@eno1.service loaded active exited ifup”

In journalctl log I see that the event “Started udev Coldplug all Devices.” appears before “Mounted /data.” and “Reached target Local File Systems.”.
Do you think this is the reason?
How do I set it to wait for “” too?

System Details:

uname -a

Linux debian 4.9.0-11-amd64 #1 SMP Debian 4.9.189-3 (2019-09-02) x86_64 GNU/Linux


Might do the job.