Fix incorrect type for livecd/modblacklist.
authorBrian Dolbec <dolsen@gentoo.org>
Fri, 2 Aug 2013 05:59:10 +0000 (22:59 -0700)
committerBrian Dolbec <dolsen@gentoo.org>
Fri, 2 Aug 2013 05:59:10 +0000 (22:59 -0700)
Bug reported by tstellar.

modules/livecd_stage2_target.py

index f816b2147426b205daaa082fd4576de8f7504332..5be8fd23870d7955eee29230de511ddd8ea5b84f 100644 (file)
@@ -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()