[PATCH 1/2] ARM: break out the setup of OMAP systems as they need to have a vfat partition at the start of the disk in order for the SOC to load u-boot from. Signed-off-by: Dennis Gilmore <dennis at ausil.us>
Brian C. Lane
bcl at redhat.com
Mon Jul 23 20:37:38 UTC 2012
On Mon, Jul 16, 2012 at 11:24:43AM -0500, Dennis Gilmore wrote:
> ---
> pyanaconda/platform.py | 33 ++++++++++++++++++++++++++++++++-
> 1 file changed, 32 insertions(+), 1 deletion(-)
>
> diff --git a/pyanaconda/platform.py b/pyanaconda/platform.py
> index 1611797..05a496f 100644
> --- a/pyanaconda/platform.py
> +++ b/pyanaconda/platform.py
> @@ -348,6 +348,32 @@ class ARM(Platform):
> def armMachine(self):
> return self._armMachine
>
> +class omapARM(ARM):
> + _bootloaderClass = bootloader.UBOOTuEnv
> + _boot_stage1_format_types = ["vfat"]
> + _boot_stage1_device_types = ["partition"]
> + _boot_stage1_mountpoints = ["/boot/uboot"]
> + _boot_mbr_description = N_("Master Boot Record")
> + _boot_descriptions = {"disk": _boot_mbr_description,
> + "partition": Platform._boot_partition_description}
> +
> + def setDefaultPartitioning(self):
> + from storage.partspec import PartSpec
> + ret = Platform.setDefaultPartitioning(self)
> + ret.append(PartSpec(mountpoint="/boot/uboot", fstype="vfat", size=20,
> + maxSize=20,
> + grow=True, weight=self.weight(fstype="vfat")))
> + return ret
> +
> + def weight(self, fstype=None, mountpoint=None):
> + score = Platform.weight(self, fstype=fstype, mountpoint=mountpoint)
> + if score:
> + return score
> + elif fstype == "vfat" and mountpoint == "/boot/uboot":
> + return 6000
This is always going to fail with your current call, mountpoint is None
and you didn't pass in /boot/uboot
--
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 482 bytes
Desc: not available
URL: <https://fedorahosted.org/pipermail/anaconda-patches/attachments/20120723/4d8fffc2/attachment-0001.sig>
More information about the anaconda-patches
mailing list