[PATCH 02/10] parse-kickstart: fix crash with PXE + ks=file: (#844478)
Will Woods
wwoods at redhat.com
Fri Aug 17 22:30:39 UTC 2012
Current dracut crashes (intentionally!) if you use 'ip=' arguments with
'BOOTIF='.
Until that's fixed upstream, add a temporary workaround that skips
writing 'ip=' arguments if 'BOOTIF' is present.
---
dracut/parse-kickstart | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/dracut/parse-kickstart b/dracut/parse-kickstart
index 5f4a358..d792ac6 100755
--- a/dracut/parse-kickstart
+++ b/dracut/parse-kickstart
@@ -111,6 +111,13 @@ class Network(commands.network.F16_Network):
# tell dracut to bring this device up
netline = ksnet_to_dracut(args, lineno, net, bootdev=True)
+ # HACK: current dracut dies if you have BOOTIF= and ip= together.
+ # Until that gets fixed upstream, we have to defer to dracut.
+ # XXX FIXME: remove this when dracut can handle BOOTIF+ip!
+ if 'BOOTIF' in proc_cmdline:
+ # let dracut use BOOTIF to bring up the network
+ netline = None
+
else:
# all subsequent 'network' lines require '--device'
if not net.device or net.device == "link":
--
1.7.11.2
More information about the anaconda-patches
mailing list