Bug 1120982 - Extend AutoYast <partition> with create-if-not-exists possibility
Extend AutoYast <partition> with create-if-not-exists possibility
Status: CONFIRMED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: AutoYaST
Current
Other Other
: P5 - None : Enhancement (vote)
: ---
Assigned To: YaST Team
E-mail List
https://trello.com/c/p9Z67gNw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2019-01-07 21:48 UTC by Pieter Hollants
Modified: 2019-01-15 11:39 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter Hollants 2019-01-07 21:48:28 UTC
Up until now AutoYast is fairly limited with regards to the <create> tag in <partition> sections: it is either "Create under all circumstances" or "Do not create under all circumstances". This means that if I want to
- create the partition if it doesn't exist (fresh disk)
- reuse an existing partition if it does already exist (update installation finding existing partitions)
I have to use a hacky pre-script to dynamically rewrite the autoinst.xml file changing <create>'s value.

It would be much saner if I could specify this behavior directly via XML.

Unfortunately the <create> tag is bound to be a boolean forever, so there are multiple options how such behavior could be specified. One example could be to introduce a new tag:

<action config:type="symbol">always-create|create-if-not-exists|reuse</action>
with always-create as default

Or one could introduce a new tag:

<create_when config:type="symbol">always|if-not-exists</create> with "always" the default to maintain compatibility
Comment 1 Stefan Hundhammer 2019-01-15 11:39:43 UTC
Moved to our Trello scrum task queue.