FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Xubuntu Development

 
 
LinkBack Thread Tools
 
Old 08-23-2011, 05:13 PM
David Lehman
 
Default Remove unused attribute 'bootable' from DeviceFormat classes.

---
pyanaconda/storage/formats/__init__.py | 6 ------
pyanaconda/storage/formats/biosboot.py | 1 -
pyanaconda/storage/formats/dmraid.py | 1 -
pyanaconda/storage/formats/fs.py | 6 ------
pyanaconda/storage/formats/multipath.py | 1 -
pyanaconda/storage/formats/prepboot.py | 1 -
6 files changed, 0 insertions(+), 16 deletions(-)

diff --git a/pyanaconda/storage/formats/__init__.py b/pyanaconda/storage/formats/__init__.py
index 4b83604..4b0c122 100644
--- a/pyanaconda/storage/formats/__init__.py
+++ b/pyanaconda/storage/formats/__init__.py
@@ -144,7 +144,6 @@ class DeviceFormat(object):
_packages = [] # required packages
_services = [] # required services
_resizable = False # can be resized
- _bootable = False # can be used as boot
_migratable = False # can be migrated
_maxSize = 0 # maximum size in MB
_minSize = 0 # minimum size in MB
@@ -371,11 +370,6 @@ class DeviceFormat(object):
return self._resizable and self.exists

@property
- def bootable(self):
- """ Is this format type suitable for a boot partition? """
- return self._bootable
-
- @property
def migratable(self):
""" Can formats of this type be migrated? """
return self._migratable
diff --git a/pyanaconda/storage/formats/biosboot.py b/pyanaconda/storage/formats/biosboot.py
index 334431f..93e1de7 100644
--- a/pyanaconda/storage/formats/biosboot.py
+++ b/pyanaconda/storage/formats/biosboot.py
@@ -33,7 +33,6 @@ class BIOSBoot(DeviceFormat):
partedFlag = PARTITION_BIOS_GRUB
_formattable = True # can be formatted
_linuxNative = True # for clearpart
- _bootable = True # can be used as boot
_maxSize = 2 # maximum size in MB
_minSize = 0.5 # minimum size in MB

diff --git a/pyanaconda/storage/formats/dmraid.py b/pyanaconda/storage/formats/dmraid.py
index bfc948b..37624af 100644
--- a/pyanaconda/storage/formats/dmraid.py
+++ b/pyanaconda/storage/formats/dmraid.py
@@ -55,7 +55,6 @@ class DMRaidMember(DeviceFormat):
_linuxNative = False # for clearpart
_packages = ["dmraid"] # required packages
_resizable = False # can be resized
- _bootable = False # can be used as boot
_maxSize = 0 # maximum size in MB
_minSize = 0 # minimum size in MB
_hidden = True # hide devices with this formatting?
diff --git a/pyanaconda/storage/formats/fs.py b/pyanaconda/storage/formats/fs.py
index 1a6d23e..9cb35d5 100644
--- a/pyanaconda/storage/formats/fs.py
+++ b/pyanaconda/storage/formats/fs.py
@@ -79,7 +79,6 @@ def fsConfigFromFile(config_file):
formattable = True
supported = True
resizable = True
- bootable = True
linuxNative = True
maxSize = 8 * 1024 * 1024
minSize = 0
@@ -902,7 +901,6 @@ class Ext2FS(FS):
_formattable = True
_supported = True
_resizable = True
- _bootable = True
_linuxNative = True
_maxSize = 8 * 1024 * 1024
_minSize = 0
@@ -1088,7 +1086,6 @@ class EFIFS(FATFS):
_modules = ["vfat"]
_name = "EFI System Partition"
_minSize = 50
- _bootable = True

@property
def supported(self):
@@ -1108,7 +1105,6 @@ class BTRFS(FS):
_resizefs = "btrfsctl"
_formattable = True
_linuxNative = True
- _bootable = False
_maxLabelChars = 256
_supported = True
_dump = True
@@ -1305,7 +1301,6 @@ class AppleBootstrapFS(HFS):
_type = "appleboot"
_mountType = "hfs"
_name = "Apple Bootstrap"
- _bootable = True
_minSize = 800.00 / 1024.00
_maxSize = 1

@@ -1440,7 +1435,6 @@ class Iso9660FS(FS):
_formattable = False
_supported = True
_resizable = False
- _bootable = False
_linuxNative = False
_dump = False
_check = False
diff --git a/pyanaconda/storage/formats/multipath.py b/pyanaconda/storage/formats/multipath.py
index 0d160e4..b77de20 100644
--- a/pyanaconda/storage/formats/multipath.py
+++ b/pyanaconda/storage/formats/multipath.py
@@ -44,7 +44,6 @@ class MultipathMember(DeviceFormat):
_linuxNative = False # for clearpart
_packages = ["device-mapper-multipath"] # required packages
_resizable = False # can be resized
- _bootable = False # can be used as boot
_maxSize = 0 # maximum size in MB
_minSize = 0 # minimum size in MB
_hidden = True # hide devices with this formatting?
diff --git a/pyanaconda/storage/formats/prepboot.py b/pyanaconda/storage/formats/prepboot.py
index 1401ee6..b7d1c60 100644
--- a/pyanaconda/storage/formats/prepboot.py
+++ b/pyanaconda/storage/formats/prepboot.py
@@ -32,7 +32,6 @@ class PPCPRePBoot(DeviceFormat):
partedFlag = PARTITION_PREP
_formattable = True # can be formatted
_linuxNative = True # for clearpart
- _bootable = True # can be used as boot
_maxSize = 10 # maximum size in MB
_minSize = 4 # minimum size in MB

--
1.7.3.4

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

Thread Tools




All times are GMT. The time now is 11:36 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org