On Wed, Jul 23, 2014 at 04:11:31PM +0200, Daniel Spannbauer wrote:
we only have two cases:
- Disk is completley empty or a system without rescue-partition is
installed......simply erease the whole disk an prepare it, but now with rescue-partition
- Disk already has a rescue partition: leave the rescue partition
untouched, with the other partitions do what you have to do
But I thin you are right...that couldn't be done by autoyast....
Not easily, but using pre scripts and modifying your autoyast file you could probably do it. I have stuff to handle cases where if an existing host is being rejumped and matches some validation (some basic "security" features) and has valid partitions, then the autoyast file has the <partitioning-advanced> bits and re-uses partitions, else it uses regular <partitioning> logic and wipes/initializes the disk.
So, in theory, you could do a pre-script to look for existing partitions, and if you see one (and I'd validate it by mounting any visible partitions and looking for (a) specific file(s) to make sure it is a rescue partition, unless it uses a different partition type, then that's easy to check) and have the resulting xml written based on seeing said valid rescue partition or not.
But I also do a lot of pre-processing of the xml in our current imaging process.