~ubuntu-branches/ubuntu/oneiric/usb-creator/oneiric

« back to all changes in this revision

Viewing changes to usbcreator/misc.py

  • Committer: Bazaar Package Importer
  • Author(s): Evan Dandrea, Mario Limonciello, Evan Dandrea
  • Date: 2011-01-28 15:42:25 UTC
  • Revision ID: james.westby@ubuntu.com-20110128154225-sd3quydl0p33g3kg
Tags: 0.2.27
[ Mario Limonciello ]
* If the EFI bootloader isn't present in the proper location but efi.img is
  available in boot/grub, extract the EFI bootloader and place it in the proper
  location. (LP: #677260)

[ Evan Dandrea ]
* Hide partition table block devices by default.  To revert to the
  previous behavior, pass --show-all to usb-creator-gtk.
* Increase the minimum persistent storage size to 1G.
* Add a 30MB padding for the kernel and initramfs (LP: #562312).

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import tempfile
21
21
 
22
22
# The minimum size, in megabytes a persistence file can be.
23
 
MIN_PERSISTENCE = 128
24
 
MAX_PERSISTENCE = 4096 # casper has issue creating a file bigger than 4GB
 
23
MIN_PERSISTENCE = 1024
 
24
MAX_PERSISTENCE = 4096 # VFAT maximum file size.
 
25
# Padding for the kernel and initramfs, in megabytes
 
26
PADDING = 30
25
27
(CAN_USE,     # Obvious.
26
28
 CANNOT_USE,  # The partition or disk is too small for the source image.
27
29
 NEED_SPACE,  # There is not enough free space, but there could be.