On Wed, 2015-02-04 at 10:12 -0800, Brian C. Lane wrote:
When there are /sys/firmware/iscsi_boot* files present the system needs to have the iscsi_firmware cmdline flag set in order to trigger dracut to run iscsistart
Resolves: rhbz#1185792
booty/bootloaderInfo.py | 6 ++++++ 1 file changed, 6 insertions(+)
diff --git a/booty/bootloaderInfo.py b/booty/bootloaderInfo.py index 73fec05..e63cbeb 100644 --- a/booty/bootloaderInfo.py +++ b/booty/bootloaderInfo.py @@ -24,6 +24,7 @@ import shutil import string import struct from copy import copy +from glob import glob
import gettext _ = lambda x: gettext.ldgettext("anaconda", x) @@ -162,6 +163,11 @@ class KernelArguments: hwaddr = self.id.network.netdevices[nic].get("HWADDR") args.add("ifname=%s:%s" % (nic, hwaddr.lower()))
# Add iscsi_firmware to trigger dracut running iscsistart
# See rhbz#1099603 and rhbz#1185792
if len(glob("/sys/firmware/iscsi_boot*")) > 0:
args.add("iscsi_firmware")
Looks good to me. I'd just use any() instead of len() > 0, but that's not important.