diff options
author | Christophe Grenier <[email protected]> | 2008-02-27 08:35:28 +0100 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2008-02-27 08:35:28 +0100 |
commit | b26cdf689df836f4657f66ffd4b1d0e4ae3e2c93 (patch) | |
tree | d80c6e9307c6ceb82b029a4a5037b41709ec8756 /src/intrf.c | |
parent | 003eff18676045b83b9cb92a0c2baebb011c893f (diff) |
Change the display unit when changing the partition type
Diffstat (limited to 'src/intrf.c')
-rw-r--r-- | src/intrf.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intrf.c b/src/intrf.c index d8ee9388..f0c70e5e 100644 --- a/src/intrf.c +++ b/src/intrf.c @@ -1419,26 +1419,32 @@ static int interface_partition_type_ncurses(disk_t *disk_car) case 'i': case 'I': disk_car->arch=&arch_i386; + autoset_unit(disk_car); break; case 'g': case 'G': disk_car->arch=&arch_gpt; + autoset_unit(disk_car); break; case 'm': case 'M': disk_car->arch=&arch_mac; + autoset_unit(disk_car); break; case 'n': case 'N': disk_car->arch=&arch_none; + autoset_unit(disk_car); break; case 's': case 'S': disk_car->arch=&arch_sun; + autoset_unit(disk_car); break; case 'x': case 'X': disk_car->arch=&arch_xbox; + autoset_unit(disk_car); break; case 'q': case 'Q': @@ -1964,6 +1970,7 @@ int interface_partition_type(disk_t *disk_car, const int verbose, char**current_ { (*current_cmd)+=strlen(arch_list[i]->part_name_option); disk_car->arch=arch_list[i]; + autoset_unit(disk_car); keep_asking=1; } if(strncmp(*current_cmd, "ask_type", 8)==0) |