xref: /onnv-gate/usr/src/cmd/boot/installgrub/message.h (revision 5589:1148bf358085)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
5*5589Ssy25831  * Common Development and Distribution License (the "License").
6*5589Ssy25831  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate /*
22*5589Ssy25831  * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
230Sstevel@tonic-gate  * Use is subject to license terms.
240Sstevel@tonic-gate  */
250Sstevel@tonic-gate 
260Sstevel@tonic-gate #ifndef	_MESSAGE_H
270Sstevel@tonic-gate #define	_MESSAGE_H
280Sstevel@tonic-gate 
290Sstevel@tonic-gate #pragma ident	"%Z%%M%	%I%	%E% SMI"
300Sstevel@tonic-gate 
310Sstevel@tonic-gate #ifdef	__cplusplus
320Sstevel@tonic-gate extern "C" {
330Sstevel@tonic-gate #endif
340Sstevel@tonic-gate 
350Sstevel@tonic-gate #define	USAGE	gettext("Usage: %s [-fm] stage1 stage2 raw-device\n")
360Sstevel@tonic-gate 
370Sstevel@tonic-gate #define	DRY_RUN	gettext("dry run--nothing will be written to disk\n")
380Sstevel@tonic-gate 
390Sstevel@tonic-gate #define	BOOTPAR	gettext("Solaris partition not found. Abort operation.\n")
400Sstevel@tonic-gate 
410Sstevel@tonic-gate #define	BOOTPAR_INACTIVE	gettext("Solaris boot partition inactive.\n")
420Sstevel@tonic-gate 
430Sstevel@tonic-gate #define	BOOTPAR_NOTFOUND	\
440Sstevel@tonic-gate     gettext("Solaris boot partition not found on %s\n")
450Sstevel@tonic-gate 
460Sstevel@tonic-gate #define	NOT_RAW_DEVICE	gettext("device %s is not a char special device\n")
470Sstevel@tonic-gate 
480Sstevel@tonic-gate #define	NOT_ROOT_SLICE	gettext("raw device must be a root slice (not s2)\n")
490Sstevel@tonic-gate 
500Sstevel@tonic-gate #define	CONVERT_FAIL	gettext("cannot convert %s to a block device.\n")
510Sstevel@tonic-gate 
520Sstevel@tonic-gate #define	MOUNT_FAIL	gettext("cannot mount %s\n")
530Sstevel@tonic-gate 
540Sstevel@tonic-gate #define	MOUNT_FAIL_PCFS	gettext("floppy: cannot mount pcfs\n")
550Sstevel@tonic-gate 
560Sstevel@tonic-gate #define	MBOOT_PROMPT	\
570Sstevel@tonic-gate 	gettext("Updating master boot sector destroys existing boot " \
580Sstevel@tonic-gate 	"managers (if any).\ncontinue (y/n)?")
590Sstevel@tonic-gate 
600Sstevel@tonic-gate #define	MBOOT_NOT_UPDATED	gettext("master boot sector not updated\n")
610Sstevel@tonic-gate 
620Sstevel@tonic-gate #define	OPEN_FAIL	gettext("cannot open/stat device %s\n")
630Sstevel@tonic-gate 
640Sstevel@tonic-gate #define	OPEN_FAIL_FILE	gettext("cannot open %s\n")
650Sstevel@tonic-gate 
660Sstevel@tonic-gate #define	OPEN_FAIL_PCFS	gettext("cannot open /boot/grub/stage2 on pcfs\n")
670Sstevel@tonic-gate 
68*5589Ssy25831 #define	PART_FAIL	\
69*5589Ssy25831 	gettext("cannot get the partition information of the disk\n")
70*5589Ssy25831 
71*5589Ssy25831 #define	BAD_PART	\
72*5589Ssy25831 	gettext("Partition %d of the disk has an incorrect offset\n")
73*5589Ssy25831 
740Sstevel@tonic-gate #define	READ_FAIL_STAGE1	gettext("cannot read stage1 file %s\n")
750Sstevel@tonic-gate 
76322Sjongkis #define	READ_FAIL_STAGE2	gettext("cannot read stage2 file %s\n")
770Sstevel@tonic-gate 
780Sstevel@tonic-gate #define	READ_FAIL_BPB	gettext("cannot read bios parameter block\n")
790Sstevel@tonic-gate 
800Sstevel@tonic-gate #define	READ_FAIL_MBR	gettext("cannot read MBR on %s\n")
810Sstevel@tonic-gate 
820Sstevel@tonic-gate #define	WRITE_FAIL_BOOTSEC	gettext("cannot write master boot sector\n")
830Sstevel@tonic-gate 
840Sstevel@tonic-gate #define	WRITE_FAIL_PBOOT	gettext("cannot write partition boot sector\n")
850Sstevel@tonic-gate 
860Sstevel@tonic-gate #define	WRITE_FAIL_STAGE2	gettext("failed to write stage2\n")
870Sstevel@tonic-gate 
880Sstevel@tonic-gate #define	WRITE_FAIL_STAGE2_BLOCKS	\
890Sstevel@tonic-gate     gettext("stage2 read/write error: read %d bytes, wrote %d bytes\n")
900Sstevel@tonic-gate 
910Sstevel@tonic-gate #define	WRITE_MBOOT	gettext("stage1 written to master boot sector\n")
920Sstevel@tonic-gate 
930Sstevel@tonic-gate #define	WRITE_PBOOT	\
940Sstevel@tonic-gate     gettext("stage1 written to partition %d sector 0 (abs %d)\n")
950Sstevel@tonic-gate 
960Sstevel@tonic-gate #define	WRITE_BOOTSEC_FLOPPY	\
970Sstevel@tonic-gate     gettext("stage1 written to floppy boot sector\n")
980Sstevel@tonic-gate 
990Sstevel@tonic-gate #define	WRITE_STAGE2_PCFS	gettext("stage2 written to pcfs\n")
1000Sstevel@tonic-gate 
101322Sjongkis #define	WRITE_STAGE2_DISK	gettext("stage2 written to partition %d," \
102322Sjongkis 	" %d sectors starting at %d (abs %d)\n")
1030Sstevel@tonic-gate 
1040Sstevel@tonic-gate #define	PCFS_FRAGMENTED	\
1050Sstevel@tonic-gate     gettext("cannot install stage2 on pcfs, too many fragments.\n")
1060Sstevel@tonic-gate 
1070Sstevel@tonic-gate #define	OUT_OF_MEMORY	gettext("diskread: out of memory\n")
1080Sstevel@tonic-gate 
1090Sstevel@tonic-gate #ifdef	__cplusplus
1100Sstevel@tonic-gate }
1110Sstevel@tonic-gate #endif
1120Sstevel@tonic-gate 
1130Sstevel@tonic-gate #endif /* _MESSAGE_H */
114