Beaker supplies autopart (or else, some suitable part commands) in the kickstart template when it provisions the recipe. The actual source is here: https://git.beaker-project.org/cgit/beaker/tree/Server/bkr/server/snippets/rhts_partitions (This snippet is included into the main kickstart template.) I think the nicest solution here would be to allow raw commands in the <partitions/> element, so that you can pass whatever commands you want and autopart/part from the template will be skipped. <partitions> part raid.01 --size=20480 --ondisk=sda ... volgroup ... </partitions> This idea has come up on the mailing list a few times before, but it seems nobody ever got around to filing it or implementing it yet :-)
(In reply to Dan Callaghan from comment #2) > Beaker supplies autopart (or else, some suitable part commands) in the > kickstart template when it provisions the recipe. The actual source is here: > > https://git.beaker-project.org/cgit/beaker/tree/Server/bkr/server/snippets/ > rhts_partitions > > (This snippet is included into the main kickstart template.) > > I think the nicest solution here would be to allow raw commands in the > <partitions/> element, so that you can pass whatever commands you want and > autopart/part from the template will be skipped. > > <partitions> > part raid.01 --size=20480 --ondisk=sda > ... > volgroup ... > </partitions> > > This idea has come up on the mailing list a few times before, but it seems > nobody ever got around to filing it or implementing it yet :-) I have tried this approach and here is the patch. http://gerrit.beaker-project.org/#/c/4221/ But I donnot like it as I think it introduces more complex logic into the rhts_partitions snippet. I am thinking it would be easy to add a new variable into custom kickstrat metata to disable the autopart. In this case, users can put raw commands into <ks_appends/> for their needs.
(In reply to matt jia from comment #3) Yes I think you're right. The point of <partitions/> is to abstract away the kickstart syntax, if someone really wants to supply raw kickstart commands we already have <ks_appends/> for that. So let's just add a new ksmeta variable no_autopart which suppresses the autopart command in the template. So if you pass no_autopart is ksmeta (and also no partitions in ksmeta, nor <partitions/>) then there will simply be no partitioning commands at all, and then you can supply your own using <ks_appends/>.
Beaker 21.0 has been released.
*** Bug 829780 has been marked as a duplicate of this bug. ***