From 1bd5ca2f530f11e27a1ae13bba592d9f725ce341 Mon Sep 17 00:00:00 2001 From: Aaro Koskinen Date: Sat, 9 Feb 2013 21:12:25 +0200 Subject: [PATCH] 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 Signed-off-by: Denys Vlasenko --- util-linux/fdisk_sun.c | 1 + 1 file changed, 1 insertion(+) diff --git a/util-linux/fdisk_sun.c b/util-linux/fdisk_sun.c index e7fcc067c..d11c54012 100644 --- a/util-linux/fdisk_sun.c +++ b/util-linux/fdisk_sun.c @@ -348,6 +348,7 @@ create_sunlabel(void) set_all_unchanged(); set_changed(0); + check_sun_label(); get_boot(CREATE_EMPTY_SUN); }