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

Julian Wollrath jwollrath at web.de
Thu Jul 23 13:14:34 BST 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

The problem probably was introduced in commit 7b5eb265bbb2b in the
systemd packaging repo, specifically in this hunk:
diff --git a/debian/extra/initramfs-tools/hooks/udev
b/debian/extra/initramfs-tools/hooks/udev index beba2eb..9704ef6 100755
- --- a/debian/extra/initramfs-tools/hooks/udev
+++ b/debian/extra/initramfs-tools/hooks/udev
@@ -32,8 +32,18 @@ cp -a /sbin/udevadm $DESTDIR/sbin/udevadm
 mkdir -p $DESTDIR/etc/udev
 cp -p /etc/udev/udev.conf $DESTDIR/etc/udev/
 
+mkdir -p $DESTDIR/lib/systemd/network/
+for link in 01-mac-for-usb.link 99-default.link; do
+  if   [ -e /etc/systemd/network/$link ]; then
+
+  elif [ -e /lib/systemd/network/$link ]; then
+    cp -p /lib/systemd/network/$link $DESTDIR/lib/systemd/network/
+  fi
+done
+
 mkdir -p $DESTDIR/lib/udev/rules.d/
 for rules in 50-firmware.rules 50-udev-default.rules
60-persistent-storage.rules \
+	75-net-description.rules 80-net-setup-link.rules \
 	61-persistent-storage-android.rules 80-drivers.rules; do
   if   [ -e /etc/udev/rules.d/$rules ]; then
     cp -p /etc/udev/rules.d/$rules $DESTDIR/lib/udev/rules.d/

As you can see, even if there are files in /etc/systemd/network, they
get only copied into the initramfs, if they are named
01-mac-for-usb.link or 99-default.link. You probably want to replace
    cp -p /etc/systemd/network/$link $DESTDIR/lib/systemd/network/
                               ^^^^^
with
    cp -p /etc/systemd/network/*.link $DESTDIR/lib/systemd/network/
                               ^^^^^^

With best regards,
Julian Wollrath
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBCgAGBQJVsNqvAAoJEFl2dmpRMS8znykH/2IhOkeqsKMHF3ecD99ARFRk
9Lv3yjmZ7G1mDfrQxeRFD0BeY1T/iVy1HUI0BPM/fyZV7vOaBRTXWpTeSrDhB1/Y
bEM7KdLCzbALSaRYgMEJMwqJ+gluuMfuJjh2/AsywyDx0YtpDr15Q6/dP+wTkvBi
8mVpotPYtgM2lv2rkH7UDwnYypJi8VNbhV/hE/TLz+n+7u2ahYOIiuTOrqvswqct
sVrBaLdwHbDodbiZvaUU/lecEZcpb9fS2tMp7RxXz4GInRdho/wDexmFX5++yFMz
f5GtODmUf4+N6LqvVBw3Bmu4FW0hfr0pTMN3c2yfN+ZgL1CdSoAm+WgD84RgkT4=
=aUhv
-----END PGP SIGNATURE-----


More information about the Pkg-systemd-maintainers mailing list