diff options
| author | Karel Zak <kzak@redhat.com> | 2013-07-10 14:31:02 +0200 |
|---|---|---|
| committer | Karel Zak <kzak@redhat.com> | 2013-09-16 16:47:06 +0200 |
| commit | d5b243144e527cf47150b7d1da580821421b90d4 (patch) | |
| tree | 6cada78f30ff6e8716546982710a62cd6cad7e96 /fdisks/fdisk.c | |
| parent | a47fec81b2a9eae2712da86c75db27cf76fae4b4 (diff) | |
| download | util-linux-d5b243144e527cf47150b7d1da580821421b90d4.tar.gz | |
fdisk: (bsd) remove generic actions from bsd_command_prompt()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'fdisks/fdisk.c')
| -rw-r--r-- | fdisks/fdisk.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fdisks/fdisk.c b/fdisks/fdisk.c index f95266bd..4bae2375 100644 --- a/fdisks/fdisk.c +++ b/fdisks/fdisk.c @@ -287,6 +287,9 @@ static void write_table(struct fdisk_context *cxt) rc = fdisk_write_disklabel(cxt); if (rc) err(EXIT_FAILURE, _("cannot write disk label")); + if (cxt->parent) + /* nested PT, don't leave */ + return; printf(_("The partition table has been altered!\n\n")); reread_partition_table(cxt, 1); |
