Re: Kickstart-list Digest, Vol 133, Issue 5
Petr Hracek <[email protected]> Wed, 29 Jul 2015 09:05:45 +0200
| Newsgroups | gmane.linux.redhat.kickstart.general |
|---|---|
| Message-ID | <[email protected]> |
Right, but how I can determine what comments belongs to? Like # Use network installation belongs to installation I should detect if url is present and add a comment after that. All those actions are going to be done by python scripts. I have been working on project called preupgrade-assistant which has an aim to migrate RHEL 6 -> RHEL 7 machine via kickstart. preupgrade-assistant is written in Python. Is there any IRC channel where we can discuss it? Greetings. Petr On 07/29/2015 09:00 AM, Richard Neuboeck wrote: > I don't understand the question. As long as it starts with # you can > write as many comments into the kickstart file as you want. > > i.e. > # Use network installation > url --url="http://mirror.centos.org/centos/7/os/x86_64/" > # Add EPEL right from the start to make things easier > # And another comment > repo --name="EPEL" > --baseurl=http://dl.fedoraproject.org/pub/epel/7/x86_64/ --cost=5 > > Richard > > On 07/29/2015 08:33 AM, Petr Hracek wrote: >> Yeah, this could be a way. >> >> I will try it definitelly. >> >> And I have a another question. >> Let's say that I would like to add a bunch of comments to my >> kickstart before an URL definitions. >> How to do that? >> >> URL section begins with >> # Use network instalation >> >> Greetings >> Petr >> >> On 07/29/2015 08:09 AM, Richard Neuboeck wrote: >>> How about a pre-install script that writes a partition schema file >>> for inclusion in kickstart? >>> >>> The following site describing how to create such a script has a nice >>> example: >>> https://github.com/rhinstaller/pykickstart/blob/master/docs/kickstart-docs.rst#chapter-4-pre-installation-script >>> >>> >>> Richard >>> >>> >>> On 07/28/2015 09:42 PM, Petr Hracek wrote: >>>> Yeah, because of my program >>>> written in python generates/updates a kickstart >>>> with some modifications. >>>> >>>> Greetings >>>> Petr >>>> On 07/28/2015 07:58 PM, Matthew wrote: >>>>> Any reason for python specifically? >>>>> >>>>> zerombr >>>>> clearpart --all --initlabel >>>>> >>>>> part pv.01 --size=1 --grow >>>>> >>>>> volgroup vg_name_rhe6-lvroot pv.01 >>>>> logvol / --fstype ext4 --name=root --vgname=vg_name_rhe6-lvroot >>>>> --size=21000 --grow >>>>> >>>>> Matthew M. Conley >>>>> 912-398-6704 >>>>> >>>>> On Jul 28, 2015 12:04 PM, >>>>> <<mailto:[email protected]>[email protected]> >>>>> wrote: >>>>> >>>>> Send Kickstart-list mailing list submissions to >>>>> [email protected] >>>>> <mailto:[email protected]> >>>>> >>>>> To subscribe or unsubscribe via the World Wide Web, visit >>>>> https://www.redhat.com/mailman/listinfo/kickstart-list >>>>> or, via email, send a message with subject or body 'help' to >>>>> [email protected] >>>>> <mailto:[email protected]> >>>>> >>>>> You can reach the person managing the list at >>>>> [email protected] >>>>> <mailto:[email protected]> >>>>> >>>>> When replying, please edit your Subject line so it is more >>>>> specific >>>>> than "Re: Contents of Kickstart-list digest..." >>>>> >>>>> Today's Topics: >>>>> >>>>> 1. How to add partitions to kickstart file with python >>>>> (Petr Hracek) >>>>> >>>>> >>>>> ---------- Forwarded message ---------- >>>>> From: Petr Hracek <[email protected] <mailto:[email protected]>> >>>>> To: [email protected] <mailto:[email protected]> >>>>> Cc: >>>>> Date: Tue, 28 Jul 2015 14:23:29 +0200 >>>>> Subject: How to add partitions to kickstart file with python >>>>> Hi folks, >>>>> >>>>> I have a data like: >>>>> partition name /dev/mapper/vg_name_rhe6-lvroot >>>>> mount point / >>>>> size 20GB >>>>> >>>>> Is there any way how to add this data to kickstart file? >>>>> >>>>> How can I read commented data from kickstart file generated by >>>>> anaconda? >>>>> >>>>> All should be done in Python. >>>>> Any idea? >>>>> >>>>> -- >>>>> Petr Hracek >>>>> Software Engineer >>>>> Developer Experience >>>>> Red Hat, Inc >>>>> Mob: +420777056169 <tel:%2B420777056169> >>>>> email: [email protected] <mailto:[email protected]> >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Kickstart-list mailing list >>>>> [email protected] <mailto:[email protected]> >>>>> https://www.redhat.com/mailman/listinfo/kickstart-list >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Kickstart-list mailing list >>>>> [email protected] >>>>> https://www.redhat.com/mailman/listinfo/kickstart-list >>>> -- >>>> Petr Hracek >>>> Software Engineer >>>> Developer Experience >>>> Red Hat, Inc >>>> Mob: +420777056169 >>>> email: [email protected] >>>> >>>> >>>> >>>> _______________________________________________ >>>> Kickstart-list mailing list >>>> [email protected] >>>> https://www.redhat.com/mailman/listinfo/kickstart-list >>>> >>> >>> >>> _______________________________________________ >>> Kickstart-list mailing list >>> [email protected] >>> https://www.redhat.com/mailman/listinfo/kickstart-list >> >> -- >> Petr Hracek >> Software Engineer >> Developer Experience >> Red Hat, Inc >> Mob: +420777056169 >> email: [email protected] >> >> >> >> _______________________________________________ >> Kickstart-list mailing list >> [email protected] >> https://www.redhat.com/mailman/listinfo/kickstart-list >> > > > > _______________________________________________ > Kickstart-list mailing list > [email protected] > https://www.redhat.com/mailman/listinfo/kickstart-list -- Petr Hracek Software Engineer Developer Experience Red Hat, Inc Mob: +420777056169 email: [email protected] _______________________________________________ Kickstart-list mailing list [email protected] https://www.redhat.com/mailman/listinfo/kickstart-list