[Bug 1868892] [NEW] initramfs-tools/hooks/udev for network *.link really sucks

Jens Elkner 1868892 at bugs.launchpad.net
Tue Mar 24 23:18:06 UTC 2020


Public bug reported:

If one creates e.g. /etc/systemd/network.cu and /etc/systemd/network.fc
and symlinks  /etc/systemd/network to one of them, network setup will
fail on reboot, because /usr/share/initramfs-tools/hooks/udev does a
very poor job: it simply checks for a directory instead of the link
files and therefore skips copying required files to the ram image.
Another poor job is done when copying the files to the ram image:
instead of following symlinks it copies them as which in turn makes them
useless, because it does not copy the related dirs and thus the symlinks
point to nothing. So keeping the system in an consistent state which
such poor scripts is very hard, asking for trouble.

Suggested fix is attached.

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "/usr/share/initramfs-tools/hooks/udev patch"
   https://bugs.launchpad.net/bugs/1868892/+attachment/5341158/+files/networkd-ramfs.patch

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1868892

Title:
  initramfs-tools/hooks/udev for network *.link really sucks

Status in systemd package in Ubuntu:
  New

Bug description:
  If one creates e.g. /etc/systemd/network.cu and
  /etc/systemd/network.fc and symlinks  /etc/systemd/network to one of
  them, network setup will fail on reboot, because /usr/share/initramfs-
  tools/hooks/udev does a very poor job: it simply checks for a
  directory instead of the link files and therefore skips copying
  required files to the ram image. Another poor job is done when copying
  the files to the ram image: instead of following symlinks it copies
  them as which in turn makes them useless, because it does not copy the
  related dirs and thus the symlinks point to nothing. So keeping the
  system in an consistent state which such poor scripts is very hard,
  asking for trouble.

  Suggested fix is attached.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1868892/+subscriptions



More information about the foundations-bugs mailing list