Bug#793374: systemd: Does not honour /etc/systemd/network/*.link

Julian Wollrath jwollrath at web.de
Thu Jul 23 13:25:48 BST 2015


From 14d0625a337511f4ab105c8187c5219abe4e152a Mon Sep 17 00:00:00 2001
From: Julian Wollrath <jwollrath at web.de>
Date: Thu, 23 Jul 2015 14:22:23 +0200
Subject: [PATCH] Copy *.link files from /etc/systemd/network to
initramfs

The manpage of systemd.link says, that everything in
/etc/systemd/network/*.link takes precedence over /lib/systemd/network
and others. Hence, the content of /etc/system/network should also be
contained in the initramfs, so that this is true.

Signed-off-by: Julian Wollrath <jwollrath at web.de>
Closes: #793374
---
 debian/extra/initramfs-tools/hooks/udev | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/debian/extra/initramfs-tools/hooks/udev
b/debian/extra/initramfs-tools/hooks/udev index
cfe5085ae079..d3d08aa48f93 100755 ---
a/debian/extra/initramfs-tools/hooks/udev +++
b/debian/extra/initramfs-tools/hooks/udev @@ -41,6 +41,10 @@ for link
in 01-mac-for-usb.link 99-default.link; do fi
 done
 
+if [ -d /etc/systemd/network/ ]; then
+  cp -p /etc/systemd/network/*.link $DESTDIR/lib/systemd/network/
+fi
+
 mkdir -p $DESTDIR/lib/udev/rules.d/
 for rules in 50-firmware.rules 50-udev-default.rules
60-persistent-storage.rules \ 70-persistent-net.rules
75-net-description.rules 80-net-setup-link.rules \
-- 
2.4.6




More information about the Pkg-systemd-maintainers mailing list