Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > 71a1ba4a20ff0a01d79300b8413dde5d > files > 17

dracut-057-4.mga9.src.rpm

From fc049fef3455e1bab92e061dcbfb154414cf9c46 Mon Sep 17 00:00:00 2001
From: Thomas Backlund <tmb@mageia.org>
Date: Sun, 12 Jun 2016 14:41:10 +0000
Subject: [PATCH 514/514] mgainstaller: fix network interface renaming
 (mga#17651)

Since systemd 220 interface renaming changed, and this file is needed for it to trigger
in stage1 as we dont run full systemd/udev there.

Fixes: https://bugs.mageia.org/show_bug.cgi?id=17651

Signed-of-by: Thomas Backlund <tmb@mageia.org>
---
 modules.d/90mgainstaller/module-setup.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/modules.d/90mgainstaller/module-setup.sh b/modules.d/90mgainstaller/module-setup.sh
index 987adde2..dd3e2eca 100755
--- a/modules.d/90mgainstaller/module-setup.sh
+++ b/modules.d/90mgainstaller/module-setup.sh
@@ -46,6 +46,9 @@ install() {
     # below has /usr added...
     inst /usr/lib/module-init-tools/ldetect-lst-modules.alias /usr/lib/module-init-tools/ldetect-lst-modules.alias
 
+    # needed for udev network interface renaming
+    inst /lib/systemd/network/99-default.link /lib/systemd/network/99-default.link
+
     # To allow for debug build of stage1
     if [ -n "$DRAKX_STAGE1_BINARY" -a -x "$DRAKX_STAGE1_BINARY" ]; then
       inst "$DRAKX_STAGE1_BINARY" /usr/sbin/stage1
-- 
2.13.5