Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaro Koskinen <aaro.koskinen@iki.fi>2013-02-09 23:12:25 +0400
committerDenys Vlasenko <vda.linux@googlemail.com>2013-02-11 03:22:48 +0400
commit1bd5ca2f530f11e27a1ae13bba592d9f725ce341 (patch)
treecd87bd120f918301b0e1b6c460ffa40db7fae624 /util-linux
parent272d85cc8554299502d802b3db7317a7381e8bd7 (diff)
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>
Diffstat (limited to 'util-linux')
-rw-r--r--util-linux/fdisk_sun.c1
1 files changed, 1 insertions, 0 deletions
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);
}