Am 13.04.2017 um 15:46 schrieb Dimitri John Ledkov: > diff --git a/debian/extra/write_persistent_net_s390x_virtio > b/debian/extra/write_persistent_net_s390x_virtio > new file mode 100755 > index 000000000..bbeb25085 > --- /dev/null > +++ b/debian/extra/write_persistent_net_s390x_virtio > @@ -0,0 +1,40 @@ > +#!/bin/sh > +set -e > + > +# > +# udevd since 232-20 learned to generate stable interface names for network > +# interfaces in kvm/qemu. However, existing machines upgrading will be using > +# the ethX names instead. The most risk-averse action is to encode > +# "persistent-net-rules" like rules to keep the ethX names on upgrades, since > +# the interface names (ethX) may be in use not only in > /etc/network/interfaces > +# but in other configurations too (daemons, firewalls, etc). > +# > +# This is a one time action, and can be removed after the next stable & LTS > +# releases. (~ May 2018) > +# > + > +rulesfile=/etc/udev/rules.d/70-persistent-net.rules > + > +if [ `uname -m` != 's390x' ] > +then > + exit 0 > +fi > + > +if [ `systemd-detect-virt` != 'kvm' ] > +then > + exit 0 > +fi
Keep in mind, that systemd-detect-virt is provided by the systemd package and not guaranteed to be installed. > diff --git a/debian/udev.install b/debian/udev.install > index b0ab649fb..e5aae4daf 100644 > --- a/debian/udev.install > +++ b/debian/udev.install > @@ -22,3 +22,4 @@ usr/share/pkgconfig/udev.pc > ../../extra/rules/*.rules lib/udev/rules.d/ > #../../extra/*.hwdb lib/udev/hwdb.d/ > ../../extra/fbdev-blacklist.conf lib/modprobe.d/ > +../../extra/write_persistent_net_s390x_virtio usr/share/systemd/ Hm, maybe move that to a path which is udev specific, like /usr/lib/udev -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature

