[Pkg-libvirt-commits] [libguestfs] 02/19: p2v: kickstart: Try harder to stop systemd from renaming network devices.

Hilko Bengen bengen at moszumanska.debian.org
Sun Nov 1 17:12:28 UTC 2015


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag upstream/1.29.44
in repository libguestfs.

commit 63cd28974e363e9f4b1ea56b39661ad3218a8f13
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue May 19 14:44:32 2015 +0100

    p2v: kickstart: Try harder to stop systemd from renaming network devices.
---
 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 c91f211..e80ae06 100644
--- a/p2v/p2v.ks.in
+++ b/p2v/p2v.ks.in
@@ -26,11 +26,12 @@ rootpw --plaintext p2v
 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list