Re: Autoyast removes comments in autoinst.xml?
Daniel Spannbauer <[email protected]> Wed, 12 May 2021 13:40:36 +0200
| Newsgroups | gmane.linux.suse.autoinstall |
|---|---|
| Message-ID | <[email protected]> |
Am 5/12/21 um 12:51 PM schrieb Imobach Gonzalez Sosa: > El mi=E9rcoles, 12 de mayo de 2021 10:41:26 (WEST) Daniel Spannbauer escr= ibi=F3: > > [..] > >> Ok, it deletes not only the comments, it beautifies the whole xml, so >> xml tags set in a row like "</partitions></driver>" are splited. >> >> Can I set any marker in a xml file, which is not destroyed by autoyast? > Hi Daniel, > > You are right, the AutoYaST preprocessing is rather complex and, at the e= nd, > it "regenerates" the profile in text form. This regenerated profile does = not > have comments, has additional annotations (t=3D attributes), and so on. > > There is no way to change such a behavior, but I hope we can find a diffe= rent > way of implementing what you need. It would be nice to know more details = about > what you are trying to achieve. > > For instance, you can put a placeholder like this: > > <password>%USERPASSWORD%</password> > > which is valid XML, is not a comment and can be easily replaced. But I gu= ess > your use-case could be more complex. > > BTW, which (open)SUSE version are you using? Hello, we use the same custom installation media on several hardware, so I=20 adopt the profile with xml snipplets according to the hardware, mainly=20 the partitioning. If there are 2 harddisks found, I add a snipplet for the second disk. Now, we changed the partitioning. If there is a second disk, we=20 configure a lvm with the last partition of the first disk and the second=20 disk. So I have to change the last partition on the first disk, the=20 second disk and create a lvm over them. We use Leap 15.2 Regards Daniel --=20 Daniel Spannbauer Systemadministration marco Systemanalyse und Entwicklung GmbH Tel +49 8333 9233-27 Fax -11 Rechbergstr. 4-6, D 87727 Babenhausen Mobil +49 171 4033220 http://www.marco.de/ Email [email protected] Gesch=E4ftsf=FChrer Martin Reuter HRB 171775 Amtsgericht M=FCnc= hen