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