Re: anaconda disk image partitioning question

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

 



David Lehman wrote:
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.
Thanks, I'll give that a try.

Out of curiosity, is there a simple explanation for why it 'sometimes' puts swap before root, but not other times. /boot always appears to get the first partition (understandably), but I'm not clear on the partition selection logic for swap and root.


Thank you,

d.marlin
=========

Dave

Thank you,

d.marlin

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux