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

2015-07-23 Thread Josh Triplett
On Thu, 23 Jul 2015 14:07:36 +0200 Julian Wollrath wrote: > I change my network device names via an .link definition in > /etc/systemd/network/01-ethernet.link with the following content: > [Match] > MACAddress=xx:xx:xx:xx:xx:xx > OriginalName=eth* > Driver=e1000e > > [Link] >

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

2015-07-23 Thread Michael Biebl
Am 23.07.2015 um 15:09 schrieb Felipe Sateler: > On 23 July 2015 at 09:24, Michael Biebl wrote: >> >> The problem might be, that we don't know, which link files to copy. >> We will need to check, if it's actually safe to copy all of >> /etc/systemd/network/*.link into the initramfs. > > For refer

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

2015-07-23 Thread Felipe Sateler
On 23 July 2015 at 09:24, Michael Biebl wrote: > > The problem might be, that we don't know, which link files to copy. > We will need to check, if it's actually safe to copy all of > /etc/systemd/network/*.link into the initramfs. For reference, dracut appears to just copy everything to the initr

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

2015-07-23 Thread Julian Wollrath
> +if [ -d /etc/systemd/network/ ]; then > + cp -p /etc/systemd/network/*.link $DESTDIR/lib/systemd/network/ > +fi This could break update-initramfs if no *.link files in /etc/systemd/network exist. The new version of the patch, which I already send out, adjusts the check, so that that does not h

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

2015-07-23 Thread Michael Biebl
Am 23.07.2015 um 14:07 schrieb Julian Wollrath: > Package: systemd > Version: 222-2 > Severity: normal > > Dear Maintainer, > > I change my network device names via an .link definition in > /etc/systemd/network/01-ethernet.link with the following content: > [Match] > MACAddress=xx:xx:xx:x

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

2015-07-23 Thread Julian Wollrath
Am Thu, 23 Jul 2015 14:38:07 +0200 schrieb Michael Biebl : > Am 23.07.2015 um 14:25 schrieb Julian Wollrath: > > > 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/

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

2015-07-23 Thread Julian Wollrath
> The problem might be, that we don't know, which link files to copy. > We will need to check, if it's actually safe to copy all of > /etc/systemd/network/*.link into the initramfs. If the link file is not correct, than systemd just ignores its content, so it should be safe to copy all of them. >

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

2015-07-23 Thread Michael Biebl
Am 23.07.2015 um 14:25 schrieb Julian Wollrath: > 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,

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

2015-07-23 Thread Michael Biebl
Am 23.07.2015 um 14:07 schrieb Julian Wollrath: > Package: systemd > Version: 222-2 > Severity: normal > > Dear Maintainer, > > I change my network device names via an .link definition in > /etc/systemd/network/01-ethernet.link with the following content: > [Match] > MACAddress=xx:xx:xx:x

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

2015-07-23 Thread Julian Wollrath
>From 14d0625a337511f4ab105c8187c5219abe4e152a Mon Sep 17 00:00:00 2001 From: Julian Wollrath 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 prec

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

2015-07-23 Thread Julian Wollrath
-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

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

2015-07-23 Thread Julian Wollrath
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Package: systemd Version: 222-2 Severity: normal Dear Maintainer, I change my network device names via an .link definition in /etc/systemd/network/01-ethernet.link with the following content: [Match] MACAddress=xx:xx:xx:xx:xx:xx Origina