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