[PATCH] log lvcreate commands

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm in the middle of debugging a problem with lvcreate in Anaconda in RHEL 5.1 and I added a line to log the lvcreate commands as they're called. I'm still debugging the problem, but the extra output in the logs confirmed my suspicions, so it may be useful to others as well.

Jeff Bastian


--- fsset.py.orig       2007-12-10 18:33:19.000000000 -0500
+++ fsset.py    2007-12-10 18:33:03.000000000 -0500
@@ -2450,6 +2450,8 @@

     def setupDevice(self, chroot="/", devPrefix='/tmp', vgdevice = None):
         if not self.isSetup:
+            log.debug("lvcreate -L %dM -n %s -An %s"
+                      % (self.size, self.name, self.vgname))
             lvm.writeForceConf()
             rc = iutil.execWithRedirect("lvm",
                                         ["lvcreate", "-L",

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux