[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: anaconda disk image partitioning question



On Tue, 2012-07-24 at 22:29 -0500, David A. Marlin wrote:
> I am using livemedia-creator on F17 to create a disk image.  I manually 
> select the partitioning scheme in the kickstart:
> 
>    clearpart --all
>    part /boot --size 255 --fstype ext3 --label=boot
>    part swap --size 511
>    part / --size 3327 --fstype ext4 --label=rootfs
> 
> Previously I created several disk images and they all had the partitions 
> in the following order:
> 
>   1 - /boot
>   2 - swap
>   3 - / (root)
> 
> I created another disk image today, but the partitions are now in the 
> following order:
> 
>   1 - /boot
>   2 - / (root)
>   3 - swap
> 
> The reason this is significant is that after installing the disk image 
> onto physical media I want to be able to resize the root partition 
> ('/'), and that is only practical if it is the last partition on the image.
> 
> So my question is, what determines the order of the partitions on a disk 
> image, and is there a way to select, or guarantee a specific order?

We intentionally do not provide any way to try to ensure ordering of
partitions. However, for your simple case you can achieve what you want
by passing --asprimary as an argument to /boot and swap, but not root.
That should be enough to cause it to be allocated last.

Dave

> 
> 
> Thank you,
> 
> d.marlin
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]