6039 installgrub MBR update response check should use locale specific yesexpr
[illumos-gate.git] / usr / src / cmd / boot / installgrub / message.h
blob2dc6caba6ed777b6ddce2069bfe287966892ad1f
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
19 * CDDL HEADER END
22 * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
23 * Use is subject to license terms.
26 #ifndef _MESSAGE_H
27 #define _MESSAGE_H
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
33 #define USAGE gettext("Usage: %s [-fm] stage1 stage2 raw-device\n")
35 #define DRY_RUN gettext("dry run--nothing will be written to disk\n")
37 #define NOSOLPAR \
38 gettext("Solaris partition not found. Aborting operation.\n")
40 #define NOBOOTPAR \
41 gettext("Solaris x86 boot partition not found. Aborting operation.\n")
43 #define SOLPAR_INACTIVE gettext("Solaris fdisk partition is inactive.\n")
45 #define BOOTPAR_NOTFOUND \
46 gettext("Solaris boot partition not found on %s\n")
48 #define NOT_RAW_DEVICE gettext("device %s is not a char special device\n")
50 #define NOT_ROOT_SLICE gettext("raw device must be a root slice (not s2)\n")
52 #define CONVERT_FAIL gettext("cannot convert %s to a block device.\n")
54 #define MOUNT_FAIL gettext("cannot mount %s\n")
56 #define MOUNT_FAIL_PCFS gettext("floppy: cannot mount pcfs\n")
58 #define MBOOT_PROMPT \
59 gettext("Updating master boot sector destroys existing boot " \
60 "managers (if any).\ncontinue (y/n)? ")
62 #define MBOOT_NOT_UPDATED gettext("master boot sector not updated\n")
64 #define OPEN_FAIL gettext("cannot open/stat device %s\n")
66 #define OPEN_FAIL_FILE gettext("cannot open %s\n")
68 #define OPEN_FAIL_PCFS gettext("cannot open /boot/grub/stage2 on pcfs\n")
70 #define PART_FAIL \
71 gettext("cannot get the partition information of the disk\n")
73 #define BAD_PART \
74 gettext("Partition %d of the disk has an incorrect offset\n")
76 #define READ_FAIL_STAGE1 gettext("cannot read stage1 file %s\n")
78 #define READ_FAIL_STAGE2 gettext("cannot read stage2 file %s\n")
80 #define READ_FAIL_BPB gettext("cannot read bios parameter block\n")
82 #define READ_FAIL_MBR gettext("cannot read MBR on %s\n")
84 #define WRITE_FAIL_BOOTSEC gettext("cannot write master boot sector\n")
86 #define WRITE_FAIL_PBOOT gettext("cannot write partition boot sector\n")
88 #define WRITE_FAIL_STAGE2 gettext("failed to write stage2\n")
90 #define WRITE_FAIL_STAGE2_BLOCKS \
91 gettext("stage2 read/write error: read %d bytes, wrote %d bytes\n")
93 #define WRITE_MBOOT gettext("stage1 written to master boot sector\n")
95 #define WRITE_PBOOT \
96 gettext("stage1 written to partition %d sector 0 (abs %d)\n")
98 #define WRITE_BOOTSEC_FLOPPY \
99 gettext("stage1 written to floppy boot sector\n")
101 #define WRITE_STAGE2_PCFS gettext("stage2 written to pcfs\n")
103 #define WRITE_STAGE2_DISK gettext("stage2 written to partition %d," \
104 " %d sectors starting at %d (abs %d)\n")
106 #define PCFS_FRAGMENTED \
107 gettext("cannot install stage2 on pcfs, too many fragments.\n")
109 #define OUT_OF_MEMORY gettext("diskread: out of memory\n")
111 #define NO_VIRT_GEOM gettext("Could not get virtual geometry\n")
113 #define NO_PHYS_GEOM gettext("Could not get physical geometry\n")
115 #define NO_LABEL_GEOM gettext("Could not get label geometry\n")
117 #define LIBFDISK_INIT_FAIL gettext("Failed to initialize libfdisk.\n")
121 #ifdef __cplusplus
123 #endif
125 #endif /* _MESSAGE_H */