]> git.ipfire.org Git - thirdparty/util-linux.git/commit
sfdisk: write empty label also when only ignored partition specified
authorKarel Zak <kzak@redhat.com>
Thu, 19 Aug 2021 10:10:02 +0000 (12:10 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 19 Aug 2021 10:10:02 +0000 (12:10 +0200)
commit0c7e7cc4eccb6303c4723587d536d9e45fa8e5f3
tree5f6b6ef0f8194de0b0664bd714973ffd91dae8c1
parentd73690420693677ab07e331f20a80805a327773d
sfdisk: write empty label also when only ignored partition specified

sfdisk writes empty disk label only when "label:" header specified.
Unfortunately, this feature is ignored when all specified partitions
are ignored

  echo -e "label: dos\n0,0,0\n" | sfdisk /dev/sdc

Fixes: https://github.com/karelzak/util-linux/issues/1413
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/sfdisk.c