diff options
author | Francesco Cosoleto | 2011-08-17 00:19:04 +0200 |
---|---|---|
committer | Karel Zak | 2011-08-30 10:54:37 +0200 |
commit | 9777759ad67014273a1499fe4c55544434157eab (patch) | |
tree | 85cbeb5725695c011deb7916aca10d361d8e8479 /fdisk/fdisk.c | |
parent | fdisk: print partition deleted message (diff) | |
download | kernel-qcow2-util-linux-9777759ad67014273a1499fe4c55544434157eab.tar.gz kernel-qcow2-util-linux-9777759ad67014273a1499fe4c55544434157eab.tar.xz kernel-qcow2-util-linux-9777759ad67014273a1499fe4c55544434157eab.zip |
fdisk: print welcome message
This adds a welcome message with util-linux version number, information
about fdisk behaviour that doesn't write to disk after a command (unlike
gparted) and a warning about possible data loss.
The message appears just before the first command prompt.
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
Diffstat (limited to 'fdisk/fdisk.c')
-rw-r--r-- | fdisk/fdisk.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fdisk/fdisk.c b/fdisk/fdisk.c index d3fc20010..1c1f49211 100644 --- a/fdisk/fdisk.c +++ b/fdisk/fdisk.c @@ -932,11 +932,7 @@ static void create_doslabel(void) { unsigned int id = get_random_id(); - fprintf(stderr, - _("Building a new DOS disklabel with disk identifier 0x%08x.\n" - "Changes will remain in memory only, until you decide to write them.\n" - "After that, of course, the previous content won't be recoverable.\n\n"), - id); + fprintf(stderr, _("Building a new DOS disklabel with disk identifier 0x%08x.\n"), id); sun_nolabel(); /* otherwise always recognised as sun */ sgi_nolabel(); /* otherwise always recognised as sgi */ disklabel = DOS_LABEL; @@ -3093,6 +3089,10 @@ main(int argc, char **argv) { disklabel = DOS_LABEL; } + fprintf(stderr, _("Welcome to fdisk (%s).\n\n" + "Changes will remain in memory only, until you decide to write them.\n" + "Be careful before using the write command.\n"), PACKAGE_STRING); + while (1) { putchar('\n'); c = tolower(read_char(_("Command (m for help): "))); |