Package liveusb :: Module creator :: Class LinuxLiveUSBCreator
[hide private]
[frames] | no frames]

Class LinuxLiveUSBCreator

source code

    object --+    
             |    
LiveUSBCreator --+
                 |
                LinuxLiveUSBCreator

Instance Methods [hide private]
 
detect_removable_drives(self)
Detect all removable USB storage devices using HAL via D-Bus
source code
 
_add_device(self, dev, parent=None) source code
 
mount_device(self)
Mount our device with HAL if it is not already mounted
source code
 
unmount_device(self)
Unmount our device if we mounted it to begin with
source code
 
verify_filesystem(self)
Verify the filesystem of our device, setting the volume label if necessary.
source code
 
extract_iso(self)
Extract self.iso to self.dest
source code
 
install_bootloader(self)
Run syslinux to install the bootloader on our devices
source code
 
get_free_bytes(self, device=None)
Return the number of available bytes on our device
source code
 
_get_device(self, udi)
Return a dbus Interface to a specific HAL device UDI
source code
 
terminate(self)
Terminate any subprocesses that we have spawned
source code
 
verify_iso_md5(self)
Verify the ISO md5sum.
source code
 
get_proxies(self)
Return the proxy settings.
source code

Inherited from LiveUSBCreator: __init__, check_free_space, create_persistent_overlay, delete_liveos, existing_liveos, existing_overlay, get_liveos, get_overlay, get_release_from_iso, popen, update_configs, verify_iso_sha1, write_log

Inherited from LiveUSBCreator (private): _set_drive, _setup_logger, _setup_olpc

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables [hide private]
  bus = None
  hal = None

Inherited from LiveUSBCreator: dest, drive, drives, fstype, iso, isosize, label, log, mb_per_sec, output, overlay, pids, totalsize, uuid

Inherited from LiveUSBCreator (private): _drive

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

detect_removable_drives(self)

source code 

Detect all removable USB storage devices using HAL via D-Bus

Overrides: LiveUSBCreator.detect_removable_drives

mount_device(self)

source code 

Mount our device with HAL if it is not already mounted

Overrides: LiveUSBCreator.mount_device

unmount_device(self)

source code 

Unmount our device if we mounted it to begin with

Overrides: LiveUSBCreator.unmount_device

verify_filesystem(self)

source code 

Verify the filesystem of our device, setting the volume label if necessary. If something is not right, this method throws a LiveUSBError.

Overrides: LiveUSBCreator.verify_filesystem
(inherited documentation)

extract_iso(self)

source code 

Extract self.iso to self.dest

Overrides: LiveUSBCreator.extract_iso

install_bootloader(self)

source code 

Run syslinux to install the bootloader on our devices

Overrides: LiveUSBCreator.install_bootloader

get_free_bytes(self, device=None)

source code 

Return the number of available bytes on our device

Overrides: LiveUSBCreator.get_free_bytes

terminate(self)

source code 

Terminate any subprocesses that we have spawned

Overrides: LiveUSBCreator.terminate
(inherited documentation)

verify_iso_md5(self)

source code 

Verify the ISO md5sum.

At the moment this is Linux specific, until we port checkisomd5 to Windows.

Overrides: LiveUSBCreator.verify_iso_md5

get_proxies(self)

source code 

Return the proxy settings.

At the moment this implementation only works on KDE, and should eventually be expanded to support other platforms as well.

Overrides: LiveUSBCreator.get_proxies