[PATCH anaconda/master] Add a platform weight for ARM images to ensure the root partition '/' is the the last partition in the image. This is required to allow resizing the root partition on firstboot.
Brian C. Lane
bcl at redhat.com
Fri Nov 2 21:49:31 UTC 2012
On Thu, Nov 01, 2012 at 03:56:15PM -0500, d.marlin wrote:
> From: "d.marlin" <dmarlin at redhat.com>
>
> Signed-off-by: David A. Marlin <dmarlin at redhat.com>
> ---
> pyanaconda/platform.py | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/pyanaconda/platform.py b/pyanaconda/platform.py
> index 64b9cc8..2614e41 100644
> --- a/pyanaconda/platform.py
> +++ b/pyanaconda/platform.py
> @@ -350,6 +350,15 @@ class ARM(Platform):
> self._armMachine = iutil.getARMMachine()
> return self._armMachine
>
> + def weight(self, fstype=None, mountpoint=None):
> + """Return the ARM platform-specific weight for the / partition.
> + On ARM images '/' must be the last partition, so we try to
> + weight it accordingly."""
> + if mountpoint == "/":
> + return -100
> + else:
> + return Platform.weight(self, fstype=fstype, mountpoint=mountpoint)
> +
> class omapARM(ARM):
> _boot_stage1_format_types = ["vfat"]
> _boot_stage1_device_types = ["partition"]
> --
> 1.7.10.2
Ack. I'll push this to master.
--
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://lists.fedorahosted.org/pipermail/anaconda-patches/attachments/20121102/f242f22c/attachment-0001.sig>
More information about the anaconda-patches
mailing list