summaryrefslogtreecommitdiffstats
path: root/src/chgarch.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2013-05-17 16:47:37 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2013-05-17 16:47:37 +0200
commit34c5f933576574f60c427b4ab9b6e1e9c7e5beba (patch)
treec2dfe646cfa333d60ba5e96bf5f6ce972be403a0 /src/chgarch.c
parent1471f47a5c5b9d69863ec496bd7a57a9b0081d89 (diff)
Fix regression introduced in commit d4c1e0ec98dd42d74eb058c041ece12aa48d2830
Diffstat (limited to 'src/chgarch.c')
-rw-r--r--src/chgarch.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/chgarch.c b/src/chgarch.c
index 699d1a9..0df69ca 100644
--- a/src/chgarch.c
+++ b/src/chgarch.c
@@ -65,10 +65,6 @@ int change_arch_type_cli(disk_t *disk, const int verbose, char**current_cmd)
{
(*current_cmd)+=strlen(arch_list[i]->part_name_option);
disk->arch=arch_list[i];
- autoset_unit(disk);
- hd_update_geometry(disk, verbose);
- log_info("%s\n",disk->description_short(disk));
- log_info("Partition table type: %s\n", disk->arch->part_name);
keep_asking=1;
}
if(strncmp(*current_cmd, "ask_type", 8)==0)
@@ -77,5 +73,9 @@ int change_arch_type_cli(disk_t *disk, const int verbose, char**current_cmd)
return 1;
}
} while(keep_asking>0);
+ autoset_unit(disk);
+ hd_update_geometry(disk, verbose);
+ log_info("%s\n",disk->description_short(disk));
+ log_info("Partition table type: %s\n", disk->arch->part_name);
return 0;
}