Blame SOURCES/0173-p2v-kickstart-Try-harder-to-stop-systemd-from-renami.patch

ffd6ed
From 90e0bde081b6f67f034ed810b71675d72543e309 Mon Sep 17 00:00:00 2001
ffd6ed
From: "Richard W.M. Jones" <rjones@redhat.com>
ffd6ed
Date: Tue, 19 May 2015 14:44:32 +0100
ffd6ed
Subject: [PATCH] p2v: kickstart: Try harder to stop systemd from renaming
ffd6ed
 network devices.
ffd6ed
ffd6ed
(cherry picked from commit 63cd28974e363e9f4b1ea56b39661ad3218a8f13)
ffd6ed
---
ffd6ed
 p2v/p2v.ks.in | 7 ++++---
ffd6ed
 1 file changed, 4 insertions(+), 3 deletions(-)
ffd6ed
ffd6ed
diff --git a/p2v/p2v.ks.in b/p2v/p2v.ks.in
ffd6ed
index 66ca025..3ff6784 100644
ffd6ed
--- a/p2v/p2v.ks.in
ffd6ed
+++ b/p2v/p2v.ks.in
ffd6ed
@@ -24,11 +24,12 @@ timezone --utc GMT
ffd6ed
 selinux --enforcing
ffd6ed
 firewall --enabled
ffd6ed
 
ffd6ed
-# Need to specify --device, else:
ffd6ed
-# Error creating Live CD : No --device specified with network kickstart command
ffd6ed
+# Make sure that systemd doesn't rename the network device.  We have
ffd6ed
+# to tell Anaconda we're using eth0, *and* we have to pass
ffd6ed
+# net.ifnames=0 on the kernel command line.
ffd6ed
 network --bootproto=dhcp --device=eth0
ffd6ed
+bootloader --location=mbr --append="console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH net.ifnames=0"
ffd6ed
 
ffd6ed
-bootloader --location=mbr --append="console=tty0 console=ttyS0,115200 rd_NO_PLYMOUTH"
ffd6ed
 zerombr
ffd6ed
 clearpart --all --initlabel
ffd6ed
 part / --size 3000 --fstype ext4
ffd6ed
-- 
ffd6ed
1.8.3.1
ffd6ed