Conditional partitioning/formatting of device possible

Fred van Zwieten <[email protected]>
Newsgroups gmane.linux.redhat.kickstart.general
Message-ID <CALVifsZ0W9J_sxzEg=9v3Ozs-AhF-XqAGXJgFMjd=v=WnWbzrQ@mail.gmail.com>
Hi there,

Is there a possibility in the kickstart syntax to partition/format a
device, but only if it's not already partitioned/formatted.

Use case: I have a server with a data disk. First time deployment it should
be partitioned and formatted. Second time, the data partition must be left
as is and only mounted.

I now about --noformat, but how to make that conditional?

If not possible, I must use %post. Any examples on how to do this there
using bash or python?

Regards,

Fred

_______________________________________________
Kickstart-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/kickstart-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.