[anaconda] Create and use free space snapshot for swap suggestion (#1132436)

Brian C. Lane bcl at redhat.com
Fri Aug 29 23:09:04 UTC 2014


On Fri, Aug 29, 2014 at 09:14:38AM +0200, Vratislav Podzimek wrote:
> On Thu, 2014-08-28 at 16:49 -0700, Brian C. Lane wrote:
> > Does this work correctly with the multitude of partitioning schemes? eg.
> > What if there are pre-existing partitions but clearpart --all is used in
> > the kickstart?
> That's why it happens after the ksdata.clearpart.execute() call.

That would explain it :)

> 
> Another solution for the issue would be to get the free space from
> blivet and store it in a variable passed to
> ksdata.autopart/logvol/part.execute() calls, but I think that the
> snapshot stored in blivet is more elegant and may come handy to other
> users of blivet as well.

Yeah, I think this is a good way to do it. Ack.

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list