Pixel wrote:

> Michael Riss <[EMAIL PROTECTED]> writes:
>
> [...]
>
> > On one disk I want to have swap and root (system data)
> > and on the others data like home (User data).
> > The disk containing the system data should get wiped clean,
> > freshly partitioned and installed, the other disks should not
> > get touched, I want to keep the User data on it.
> > On
> > http://www.linux-mandrake.com/drakx/auto_inst.html
> > I found the option "partitioning -> clearall".
> > Unfortunatly this is a all or nothing option. Either
> > auto_install wipes the partitiontables on all disks or
> > automatic partitioning is not possible (at least I got
> > a error message when combining partition definitions
> > with 'clearall' => 0 ).
>
> well, the pb is that auto partitioning needs room.
>
> to clear only one disk, the code says:
>
>   $flags->{clearall} || member($_->{device}, @{$flags->{clear} || []})

Oh, I looked at the wrong piece of code ;)
partition_table.pm:
if ($clearall) {
        partition_table_raw::zero_MBR_and_dirty($hd);
        return 1;
    }

Additionally, I have to admit that I am not that good at perl ...

> aka:
> - clear the disk if "clearall" is set
> - clear the disk if the disk name is in "clear"
>
> so to clean disk hdb, use:
>
>       partitioning => { clear => [ 'hdb' ], auto_allocate => 1 },
>
> so to clean disk sda and hdb, use:
>
>       partitioning => { clear => [ 'sda', 'hdb' ], auto_allocate => 1 },
>
> did i answer to all the questions? :)

Looks exactly like I was searching for, I will try that.


Thanks,
Michael




Reply via email to