xref: /titanic_51/usr/src/cmd/boot/installgrub/message.h (revision 34e5f34ea2684ba8edcac4d3985bf6ea664830f4)
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, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_MESSAGE_H
28 #define	_MESSAGE_H
29 
30 #pragma ident	"%Z%%M%	%I%	%E% SMI"
31 
32 #ifdef	__cplusplus
33 extern "C" {
34 #endif
35 
36 #define	USAGE	gettext("Usage: %s [-fm] stage1 stage2 raw-device\n")
37 
38 #define	DRY_RUN	gettext("dry run--nothing will be written to disk\n")
39 
40 #define	BOOTPAR	gettext("Solaris partition not found. Abort operation.\n")
41 
42 #define	BOOTPAR_INACTIVE	gettext("Solaris boot partition inactive.\n")
43 
44 #define	BOOTPAR_NOTFOUND	\
45     gettext("Solaris boot partition not found on %s\n")
46 
47 #define	NOT_RAW_DEVICE	gettext("device %s is not a char special device\n")
48 
49 #define	NOT_ROOT_SLICE	gettext("raw device must be a root slice (not s2)\n")
50 
51 #define	CONVERT_FAIL	gettext("cannot convert %s to a block device.\n")
52 
53 #define	MOUNT_FAIL	gettext("cannot mount %s\n")
54 
55 #define	MOUNT_FAIL_PCFS	gettext("floppy: cannot mount pcfs\n")
56 
57 #define	MBOOT_PROMPT	\
58 	gettext("Updating master boot sector destroys existing boot " \
59 	"managers (if any).\ncontinue (y/n)?")
60 
61 #define	MBOOT_NOT_UPDATED	gettext("master boot sector not updated\n")
62 
63 #define	OPEN_FAIL	gettext("cannot open/stat device %s\n")
64 
65 #define	OPEN_FAIL_FILE	gettext("cannot open %s\n")
66 
67 #define	OPEN_FAIL_PCFS	gettext("cannot open /boot/grub/stage2 on pcfs\n")
68 
69 #define	READ_FAIL_STAGE1	gettext("cannot read stage1 file %s\n")
70 
71 #define	READ_FAIL_STAGE2	gettext("cannot read stage2 file %s\n")
72 
73 #define	READ_FAIL_BPB	gettext("cannot read bios parameter block\n")
74 
75 #define	READ_FAIL_MBR	gettext("cannot read MBR on %s\n")
76 
77 #define	WRITE_FAIL_BOOTSEC	gettext("cannot write master boot sector\n")
78 
79 #define	WRITE_FAIL_PBOOT	gettext("cannot write partition boot sector\n")
80 
81 #define	WRITE_FAIL_STAGE2	gettext("failed to write stage2\n")
82 
83 #define	WRITE_FAIL_STAGE2_BLOCKS	\
84     gettext("stage2 read/write error: read %d bytes, wrote %d bytes\n")
85 
86 #define	WRITE_MBOOT	gettext("stage1 written to master boot sector\n")
87 
88 #define	WRITE_PBOOT	\
89     gettext("stage1 written to partition %d sector 0 (abs %d)\n")
90 
91 #define	WRITE_BOOTSEC_FLOPPY	\
92     gettext("stage1 written to floppy boot sector\n")
93 
94 #define	WRITE_STAGE2_PCFS	gettext("stage2 written to pcfs\n")
95 
96 #define	WRITE_STAGE2_DISK	gettext("stage2 written to partition %d," \
97 	" %d sectors starting at %d (abs %d)\n")
98 
99 #define	PCFS_FRAGMENTED	\
100     gettext("cannot install stage2 on pcfs, too many fragments.\n")
101 
102 #define	OUT_OF_MEMORY	gettext("diskread: out of memory\n")
103 
104 #ifdef	__cplusplus
105 }
106 #endif
107 
108 #endif /* _MESSAGE_H */
109