From 622599ad035cd60a1cb49bb329513b9a85624f40f6befe92a967aceb2f0ae558 Mon Sep 17 00:00:00 2001 From: Thomas Renninger Date: Wed, 17 Feb 2016 10:36:25 +0000 Subject: [PATCH] Accepting request 359888 from home:dr-yak:branches:Base:System missing "return 0" statement that breaks building of initrd on installation not running inside qemu. See bugzilla #965477 OBS-URL: https://build.opensuse.org/request/show/359888 OBS-URL: https://build.opensuse.org/package/show/Base:System/dracut?expand=0&rev=253 --- 0208-no_forced_virtnet.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/0208-no_forced_virtnet.patch b/0208-no_forced_virtnet.patch index 23b8eae..f3e5c59 100644 --- a/0208-no_forced_virtnet.patch +++ b/0208-no_forced_virtnet.patch @@ -40,13 +40,15 @@ Index: dracut-044/modules.d/90kernel-network-modules/module-setup.sh # called by dracut installkernel() { # Include wired net drivers, excluding wireless -@@ -63,6 +82,10 @@ installkernel() { +@@ -63,6 +82,12 @@ installkernel() { =drivers/net/ethernet \ ecb arc4 bridge stp llc ipv6 bonding 8021q af_packet virtio_net xennet hostonly="" instmods iscsi_ibft crc32c iscsi_boot_sysfs + + if running_in_qemu; then + hostonly='' instmods virtio_net e1000 8139cp pcnet32 e100 ne2k_pci ++ else ++ return 0 + fi }