xref: /titanic_52/usr/src/cmd/boot/installgrub/message.h (revision 3b133bec939f5230f040960ee1503dadd3dff343)
1 /*
2  * CDDL HEADER START
3  *
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.
7  *
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.
12  *
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]
18  *
19  * CDDL HEADER END
20  */
21 /*
22  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23  * Use is subject to license terms.
24  */
25 
26 #ifndef	_MESSAGE_H
27 #define	_MESSAGE_H
28 
29 #ifdef	__cplusplus
30 extern "C" {
31 #endif
32 
33 #define	USAGE	gettext("Usage: %s [-fm] stage1 stage2 raw-device\n")
34 
35 #define	DRY_RUN	gettext("dry run--nothing will be written to disk\n")
36 
37 #define	NOSOLPAR	\
38 	gettext("Solaris partition not found. Aborting operation.\n")
39 
40 #define	NOBOOTPAR	\
41 	gettext("Solaris x86 boot partition not found. Aborting operation.\n")
42 
43 #define	SOLPAR_INACTIVE	gettext("Solaris fdisk partition is inactive.\n")
44 
45 #define	BOOTPAR_NOTFOUND	\
46     gettext("Solaris boot partition not found on %s\n")
47 
48 #define	EXTSOLPAR	\
49 	gettext("Solaris in extended partition. -m (MBR) option required\n")
50 
51 #define	NOT_RAW_DEVICE	gettext("device %s is not a char special device\n")
52 
53 #define	NOT_ROOT_SLICE	gettext("raw device must be a root slice (not s2)\n")
54 
55 #define	CONVERT_FAIL	gettext("cannot convert %s to a block device.\n")
56 
57 #define	MOUNT_FAIL	gettext("cannot mount %s\n")
58 
59 #define	MOUNT_FAIL_PCFS	gettext("floppy: cannot mount pcfs\n")
60 
61 #define	MBOOT_PROMPT	\
62 	gettext("Updating master boot sector destroys existing boot " \
63 	"managers (if any).\ncontinue (y/n)?")
64 
65 #define	MBOOT_NOT_UPDATED	gettext("master boot sector not updated\n")
66 
67 #define	OPEN_FAIL	gettext("cannot open/stat device %s\n")
68 
69 #define	OPEN_FAIL_FILE	gettext("cannot open %s\n")
70 
71 #define	OPEN_FAIL_PCFS	gettext("cannot open /boot/grub/stage2 on pcfs\n")
72 
73 #define	PART_FAIL	\
74 	gettext("cannot get the partition information of the disk\n")
75 
76 #define	BAD_PART	\
77 	gettext("Partition %d of the disk has an incorrect offset\n")
78 
79 #define	READ_FAIL_STAGE1	gettext("cannot read stage1 file %s\n")
80 
81 #define	READ_FAIL_STAGE2	gettext("cannot read stage2 file %s\n")
82 
83 #define	READ_FAIL_BPB	gettext("cannot read bios parameter block\n")
84 
85 #define	READ_FAIL_MBR	gettext("cannot read MBR on %s\n")
86 
87 #define	WRITE_FAIL_BOOTSEC	gettext("cannot write master boot sector\n")
88 
89 #define	WRITE_FAIL_PBOOT	gettext("cannot write partition boot sector\n")
90 
91 #define	WRITE_FAIL_STAGE2	gettext("failed to write stage2\n")
92 
93 #define	WRITE_FAIL_STAGE2_BLOCKS	\
94     gettext("stage2 read/write error: read %d bytes, wrote %d bytes\n")
95 
96 #define	WRITE_MBOOT	gettext("stage1 written to master boot sector\n")
97 
98 #define	WRITE_PBOOT	\
99     gettext("stage1 written to partition %d sector 0 (abs %d)\n")
100 
101 #define	WRITE_BOOTSEC_FLOPPY	\
102     gettext("stage1 written to floppy boot sector\n")
103 
104 #define	WRITE_STAGE2_PCFS	gettext("stage2 written to pcfs\n")
105 
106 #define	WRITE_STAGE2_DISK	gettext("stage2 written to partition %d," \
107 	" %d sectors starting at %d (abs %d)\n")
108 
109 #define	PCFS_FRAGMENTED	\
110     gettext("cannot install stage2 on pcfs, too many fragments.\n")
111 
112 #define	OUT_OF_MEMORY	gettext("diskread: out of memory\n")
113 
114 #define	NO_VIRT_GEOM	gettext("Could not get virtual geometry\n")
115 
116 #define	NO_PHYS_GEOM	gettext("Could not get physical geometry\n")
117 
118 #define	NO_LABEL_GEOM	gettext("Could not get label geometry\n")
119 
120 #define	LIBFDISK_INIT_FAIL	gettext("Failed to initialize libfdisk.\n")
121 
122 
123 
124 #ifdef	__cplusplus
125 }
126 #endif
127 
128 #endif /* _MESSAGE_H */
129