From 1082b4471613842494261d74ec2598b4191056c9 Mon Sep 17 00:00:00 2001 From: Brian Dolbec Date: Thu, 1 Aug 2013 22:59:10 -0700 Subject: [PATCH] Fix incorrect type for livecd/modblacklist. Bug reported by tstellar. --- modules/livecd_stage2_target.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/livecd_stage2_target.py b/modules/livecd_stage2_target.py index f816b214..5be8fd23 100644 --- a/modules/livecd_stage2_target.py +++ b/modules/livecd_stage2_target.py @@ -68,6 +68,9 @@ class livecd_stage2_target(generic_stage_target): raise CatalystError,"Couldn't open "+self.settings["chroot_path"]+"/etc/modprobe.d/blacklist.conf." myf.write("\n#Added by Catalyst:") + # workaround until config.py is using configparser + if isinstance(self.settings["livecd/modblacklist"], str): + self.settings["livecd/modblacklist"] = self.settings["livecd/modblacklist"].split() for x in self.settings["livecd/modblacklist"]: myf.write("\nblacklist "+x) myf.close() -- 2.26.2