summaryrefslogtreecommitdiffstats
path: root/storage/formats/fs.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-05-05 10:48:23 -0400
committerChris Lumens <clumens@redhat.com>2009-05-05 11:54:59 -0400
commit558fc6d437c348a36a0d48048bbd5b3898be7f42 (patch)
treef48f04e76c991f5fb7f2150c26c0581bbedc3c88 /storage/formats/fs.py
parentaa88a7e3fcab2b9b46f69762c10fe75f92366b78 (diff)
downloadanaconda-558fc6d437c348a36a0d48048bbd5b3898be7f42.tar.gz
anaconda-558fc6d437c348a36a0d48048bbd5b3898be7f42.tar.xz
anaconda-558fc6d437c348a36a0d48048bbd5b3898be7f42.zip
The PS3 bootloader allows booting from ext4 filesystems (#498539).
Diffstat (limited to 'storage/formats/fs.py')
-rw-r--r--storage/formats/fs.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 177b43fd5..59672d221 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -822,11 +822,26 @@ register_device_format(Ext3FS)
class Ext4FS(Ext3FS):
""" ext4 filesystem. """
_type = "ext4"
- _bootable = False
+ _bootable = None
_defaultFormatOptions = ["-t", "ext4"]
_migratable = False
_modules = ["ext4"]
+ @property
+ def bootable(self):
+ if self._bootable is not None:
+ return self._bootable
+
+ import platform
+ p = platform.getPlatform(None)
+
+ if isinstance(p, platform.PS3):
+ self._bootable = True
+ else:
+ self._bootable = False
+
+ return self._bootable
+
register_device_format(Ext4FS)