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

Class WindowsLiveUSBCreator

source code

    object --+    
             |    
LiveUSBCreator --+
                 |
                WindowsLiveUSBCreator

Instance Methods [hide private]
 
detect_removable_drives(self)
This method should populate self.drives with removable devices
source code
 
verify_filesystem(self)
Verify the filesystem of our device, setting the volume label if necessary.
source code
 
get_free_bytes(self, device=None)
Return the number of free bytes on our selected drive
source code
 
extract_iso(self)
Extract our ISO with 7-zip directly to the USB key
source code
 
install_bootloader(self)
Run syslinux to install the bootloader on our device
source code
 
_get_device_uuid(self, drive)
Return the UUID of our selected drive
source code
 
popen(self, cmd, **kwargs)
A wrapper method for running subprocesses.
source code
 
terminate(self)
Terminate any subprocesses that we have spawned
source code
 
mount_device(self)
Mount self.drive, setting the mount point to self.mount
source code
 
unmount_device(self)
Unmount the device mounted at self.mount
source code
 
get_proxies(self)
Return a dictionary of proxy settings
source code
 
verify_iso_md5(self)
Verify the ISO md5sum.
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, 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]

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 

This method should populate self.drives with removable devices

Overrides: LiveUSBCreator.detect_removable_drives
(inherited documentation)

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)

get_free_bytes(self, device=None)

source code 

Return the number of free bytes on our selected drive

Overrides: LiveUSBCreator.get_free_bytes

extract_iso(self)

source code 

Extract our ISO with 7-zip directly to the USB key

Overrides: LiveUSBCreator.extract_iso

install_bootloader(self)

source code 

Run syslinux to install the bootloader on our device

Overrides: LiveUSBCreator.install_bootloader

popen(self, cmd, **kwargs)

source code 

A wrapper method for running subprocesses.

This method handles logging of the command and it's output, and keeps track of the pids in case we need to kill them. If something goes wrong, an error log is written out and a LiveUSBError is thrown.

Parameters:
  • cmd - The commandline to execute. Either a string or a list.
  • kwargs - Extra arguments to pass to subprocess.Popen
Overrides: LiveUSBCreator.popen
(inherited documentation)

terminate(self)

source code 

Terminate any subprocesses that we have spawned

Overrides: LiveUSBCreator.terminate

mount_device(self)

source code 

Mount self.drive, setting the mount point to self.mount

Overrides: LiveUSBCreator.mount_device
(inherited documentation)

unmount_device(self)

source code 

Unmount the device mounted at self.mount

Overrides: LiveUSBCreator.unmount_device
(inherited documentation)

get_proxies(self)

source code 

Return a dictionary of proxy settings

Overrides: LiveUSBCreator.get_proxies
(inherited documentation)

verify_iso_md5(self)

source code 

Verify the ISO md5sum.

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

Overrides: LiveUSBCreator.verify_iso_md5