[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] The PS3 bootloader allows booting from ext4 filesystems (#498539).
- From: Chris Lumens <clumens redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] The PS3 bootloader allows booting from ext4 filesystems (#498539).
- Date: Tue, 5 May 2009 10:49:26 -0400
---
storage/formats/fs.py | 17 ++++++++++++++++-
1 files changed, 16 insertions(+), 1 deletions(-)
diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 177b43f..58c38d3 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)
--
1.6.1.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]