File 0559-Add-wickedd-duid.xml-and-iaid.xml-if-available.patch of Package dracut.12460

From 657315ab800d894691b8165329fa6b234a073d6f Mon Sep 17 00:00:00 2001
From: Daniel Molkentin <dmolkentin@suse.com>
Date: Wed, 28 Feb 2018 13:40:24 +0100
Subject: [PATCH] Add wickedd duid.xml and iaid.xml if available

This allows to present the same identity to the dhcp server, and
thus retaining the IP address assigned during initrd phase in the
regular system.

Reference: bsc#1022872, bsc#1082832
---
 modules.d/40network/module-setup.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
index f99ca44c..2dd3630c 100755
--- a/modules.d/40network/module-setup.sh
+++ b/modules.d/40network/module-setup.sh
@@ -61,6 +61,7 @@ install() {
         inst_multiple /etc/sysconfig/network/ifcfg-*
         inst_multiple -o /etc/sysconfig/network/ifroute-*
         inst_simple /etc/sysconfig/network/routes
+        inst_multiple -o /var/lib/wicked/duid.xml /var/lib/wicked/iaid.xml
     }
 
     inst_libdir_file {"tls/$_arch/",tls/,"$_arch/",}"libnss_dns.so.*" \
-- 
2.13.6