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

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


> 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.

> For now, I suggest you create a custom hook for your custom
> configuration like this:
> 
> 
> $ cat /etc/initramfs-tools/hooks/link 
> #!/bin/sh -e
> PREREQS=""
> case $1 in
>         prereqs) echo "${PREREQS}"; exit 0;;
> esac
> . /usr/share/initramfs-tools/hook-functions
> 
> mkdir -p $DESTDIR/lib/systemd/network/
> cp -p /etc/systemd/network/01-ethernet.link
> $DESTDIR/lib/systemd/network/
> 
> Then make the script executable and run update-initramfs -u

It did that, thank you for your quick help.

Cheers,
Julian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150723/6312e749/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list