From 35ca51182782193f555fbdcb06bb10766550d017 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Wed, 30 Nov 2016 12:43:10 +0100 Subject: sfdisk: support empty label use-case By default sfdisk creates partition table when a first partition is specified, otherwise the device is not modified. This force users to create at least one partition. This commit allows to create empty label without partitions if "label: " header line is specified by script. The commit also modifies "New situation:" output to list label name and label identifier. Addresses: https://github.com/karelzak/util-linux/issues/374 Signed-off-by: Karel Zak --- disk-utils/fdisk-list.h | 1 + 1 file changed, 1 insertion(+) (limited to 'disk-utils/fdisk-list.h') diff --git a/disk-utils/fdisk-list.h b/disk-utils/fdisk-list.h index eddab92ec..4ed5c256b 100644 --- a/disk-utils/fdisk-list.h +++ b/disk-utils/fdisk-list.h @@ -2,6 +2,7 @@ #define UTIL_LINUX_FDISK_LIST_H extern void list_disklabel(struct fdisk_context *cxt); +extern void list_disk_identifier(struct fdisk_context *cxt); extern void list_disk_geometry(struct fdisk_context *cxt); extern void list_freespace(struct fdisk_context *cxt); -- cgit v1.2.3-55-g7522