As I said you, I want to keep the old partion sheme, to preserve the
data on the D partition.
    I find a solution with a modification in install.pl - sub 
ask_fdisk_cmds -


# fdisk commands to run
sub ask_fdisk_cmds () {
............................................


*    # Command to keep old partitioning
    my $keep_partitioning = 'keep';*

    my $ret = menu_choice
        ('Do nothing (continue)' => undef,
         'Run partitioning tool manually (experts only)' => 
$interactive_cmd,
 *        'Keep old partitioning ' => $keep_partitioning,*
         'Whole disk C:', =>
         'fdisk /pri:100,100',
............................................
         '50% C:, 50% D:' =>
         'fdisk /pri:50,100;fdisk /pri:50,100 /spec:7',
         );

     defined $ret
         or return undef;

*    if ( $ret eq $keep_partitioning ) {
         $ret = "$post_cmds";
         return $ret;
        }*

    $ret eq $interactive_cmd
        or $ret = "$pre_cmds;$ret;$post_cmds";

    return $ret;
}

In all my tests, this modification works.

    Régis

-- 
==================================================================
| Régis Gras                 | http://dcm.ujf-grenoble.fr        |
|   D.C.M.                   | mailto:[EMAIL PROTECTED] |
| 301, rue de la chimie      |         --------------            |
| DU BP 53                   | Tel 04 76 51 41 76                |
| 38041 Grenoble Cedex 9     | Fax 04 76 51 40 89                |
==================================================================


-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
unattended-info mailing list
unattended-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unattended-info

Reply via email to