2 commits - liveusb/creator.py

Luke Macken lmacken at fedoraproject.org
Thu Jan 15 16:04:46 UTC 2009


 liveusb/creator.py |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

New commits:
commit 7ca56b67cf69d9b9440d63102942d07794bc9ab8
Author: Luke Macken <lmacken at redhat.com>
Date:   Thu Jan 15 10:52:49 2009 -0500

    Support detection of all partitions.  Thanks to Horst from the Sidux project for the patch.

diff --git a/liveusb/creator.py b/liveusb/creator.py
index d9e32d4..7362d1c 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -376,7 +376,7 @@ class LinuxLiveUSBCreator(LiveUSBCreator):
                         child = self._get_device(child)
                         if child.GetProperty("block.is_volume"):
                             self._add_device(child, parent=dev)
-                            break
+                            #break      # don't break, allow all partitions
 
         if not len(self.drives):
             raise LiveUSBError(_("Unable to find any USB drives"))


commit 363f20f11b2fc2a5d2d06cba5872726711b66e95
Author: Luke Macken <lmacken at redhat.com>
Date:   Thu Jan 15 10:45:49 2009 -0500

    Support USB hard drives, which don't have the `storage.removable` property.
    Thanks to Horst from the Sidux project for the patch.

diff --git a/liveusb/creator.py b/liveusb/creator.py
index 421adc1..d9e32d4 100755
--- a/liveusb/creator.py
+++ b/liveusb/creator.py
@@ -365,8 +365,7 @@ class LinuxLiveUSBCreator(LiveUSBCreator):
 
         for device in devices:
             dev = self._get_device(device)
-            if self.opts.force or dev.GetProperty("storage.bus") == "usb" and \
-               dev.GetProperty("storage.removable"):
+            if self.opts.force or dev.GetProperty("storage.bus") == "usb":
                 if dev.GetProperty("block.is_volume"):
                     self._add_device(dev)
                     continue




More information about the liveusb-creator mailing list