\--- /usr/bin/livecd-creator 2007-10-30 02:56:37.000000000 +0900
+++ livecd-creator 2007-11-20 19:59:29.623194393 +0900
@@ -598,13 +598,13 @@
# do some clean up to avoid lvm info leakage. this sucks.
for subdir in ("cache", "backup", "archive"):
- for f in os.listdir("%s/install\_root/etc/lvm/%s"
- %(self.build\_dir, subdir)):
- try:
+ try:
+ for f in os.listdir("%s/install\_root/etc/lvm/%s"
+ %(self.build\_dir, subdir)):
os.unlink("%s/install\_root/etc/lvm/%s/%s"
%(self.build\_dir, subdir, f))
- except:
- pass
+ except:
+ pass
def writeNetworkIfCfg(self, instroot, network):
path = instroot + "/etc/sysconfig/network-scripts/ifcfg-" + network.device
こんな感じかな。pythonは一行たりともかけないけど。