fdisk_sun: fix corrupted partition data with blank disk

After creating Sun disk label for the first time for a blank disk,
the partition table appears corrupted because current_label_type will
never get set to a proper type. Fix this by calling check_sun_label()
after BusyBox has created the label.

Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Aaro Koskinen 2013-02-09 21:12:25 +02:00 committed by Denys Vlasenko
parent 272d85cc85
commit 1bd5ca2f53

View File

@ -348,6 +348,7 @@ create_sunlabel(void)
set_all_unchanged();
set_changed(0);
check_sun_label();
get_boot(CREATE_EMPTY_SUN);
}