Re: Don't delete a partition, if it doesn't exist...create it.

Daniel Spannbauer <[email protected]> Wed, 23 Jul 2014 16:11:31 +0200
Newsgroups gmane.linux.suse.autoinstall
Message-ID <[email protected]>
Am 07/23/2014 02:42 PM, schrieb 686f6c6d:
> On Wed, Jul 23, 2014 at 11:53 AM, Daniel Spannbauer <[email protected]> wrote:
>> Hmmm,
>>
>> create=false only works if there was a partition before the installation.
>>
>> but what if the Disk is brand-new? Or if the disk was partitioned with a
>> different way?
>> Then I have to wipe the complete disk to get my partitioning on that disk.
>>
>> So, I have only to reformat my disk if the partitioning is not as I want
>> it....
> 
> Ok, I misunderstood your initial mail. What you are trying to do isn't
> easily possible AFAIK.
> 
> 1. The brand-new case is pretty simple. In that case, you don't have
> to worry about keeping the partition, you just create a complete
> layout.
> 2. The case where you have a known layout and just want to keep that
> one partition is our case, I have attached the relevant snippets of
> our profile. (You can even decide during install if /scratch should be
> kept; the machines get the profile snippets via rules.xml.) A similar
> case is the one where in your known partition layout you resize your
> existing partitions and then add your permanently-kept partition (I've
> never done it, but IIRC it's one of the examples in the docs).
> 3. The hard case is the whatever-existing layout.
>     - I would assume this doesn't work automatically with
> non-interactive AutoYAST, because the partitioning is only easy to
> keep if the layout is already known (see attached files).
>     - So if you only have one or a few existing layouts (f.e. they
> were all created from the same AutoYAST profile(s)) then you should be
> fine, this is the "easy" (it is a bit of work…) case #2 above.
>     - If you have a large number of existing layouts, this becomes
> unmanageable and I would assume reinstalling them as case #1 would be
> easier. But I might be wrong, this is just how I would try to do it.
> Merging/streamlining/converging the different cases might be
> beneficial in the long run, if reinstalling and possible downtime is
> an option.
>     - Another option might be to use the y2confirm boot parameter
> during AutoYAST install and then resize and add manually (or to do
> that from the installed system).
> 
> 

Hello,

we only have two cases:

1. 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

2. 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....

Regards

Daniel


-- 
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äftsführer Martin Reuter             HRB 171775 Amtsgericht München
-- 
To unsubscribe, e-mail: [email protected]
To contact the owner, e-mail: [email protected]