Bug#793374: [PATCH] Copy *.link files from /etc/systemd/network to initramfs
Julian Wollrath
jwollrath at web.de
Thu Jul 23 14:02:05 BST 2015
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..89cb8d6710a6 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 `ls /etc/systemd/network/*.link > /dev/null 2>&1`; 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