xref: /onnv-gate/usr/src/cmd/boot/installgrub/message.h (revision 11930:e86ade140716)
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
55589Ssy25831  * Common Development and Distribution License (the "License").
65589Ssy25831  * 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*11930SJan.Setje-Eilers@Sun.COM  * Copyright 2010 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 #ifdef	__cplusplus
300Sstevel@tonic-gate extern "C" {
310Sstevel@tonic-gate #endif
320Sstevel@tonic-gate 
330Sstevel@tonic-gate #define	USAGE	gettext("Usage: %s [-fm] stage1 stage2 raw-device\n")
340Sstevel@tonic-gate 
350Sstevel@tonic-gate #define	DRY_RUN	gettext("dry run--nothing will be written to disk\n")
360Sstevel@tonic-gate 
3710568SVikram.Hegde@Sun.COM #define	NOSOLPAR	\
3810568SVikram.Hegde@Sun.COM 	gettext("Solaris partition not found. Aborting operation.\n")
390Sstevel@tonic-gate 
4010568SVikram.Hegde@Sun.COM #define	NOBOOTPAR	\
4110568SVikram.Hegde@Sun.COM 	gettext("Solaris x86 boot partition not found. Aborting operation.\n")
4210568SVikram.Hegde@Sun.COM 
4310568SVikram.Hegde@Sun.COM #define	SOLPAR_INACTIVE	gettext("Solaris fdisk partition is inactive.\n")
440Sstevel@tonic-gate 
450Sstevel@tonic-gate #define	BOOTPAR_NOTFOUND	\
460Sstevel@tonic-gate     gettext("Solaris boot partition not found on %s\n")
470Sstevel@tonic-gate 
480Sstevel@tonic-gate #define	NOT_RAW_DEVICE	gettext("device %s is not a char special device\n")
490Sstevel@tonic-gate 
500Sstevel@tonic-gate #define	NOT_ROOT_SLICE	gettext("raw device must be a root slice (not s2)\n")
510Sstevel@tonic-gate 
520Sstevel@tonic-gate #define	CONVERT_FAIL	gettext("cannot convert %s to a block device.\n")
530Sstevel@tonic-gate 
540Sstevel@tonic-gate #define	MOUNT_FAIL	gettext("cannot mount %s\n")
550Sstevel@tonic-gate 
560Sstevel@tonic-gate #define	MOUNT_FAIL_PCFS	gettext("floppy: cannot mount pcfs\n")
570Sstevel@tonic-gate 
580Sstevel@tonic-gate #define	MBOOT_PROMPT	\
590Sstevel@tonic-gate 	gettext("Updating master boot sector destroys existing boot " \
600Sstevel@tonic-gate 	"managers (if any).\ncontinue (y/n)?")
610Sstevel@tonic-gate 
620Sstevel@tonic-gate #define	MBOOT_NOT_UPDATED	gettext("master boot sector not updated\n")
630Sstevel@tonic-gate 
640Sstevel@tonic-gate #define	OPEN_FAIL	gettext("cannot open/stat device %s\n")
650Sstevel@tonic-gate 
660Sstevel@tonic-gate #define	OPEN_FAIL_FILE	gettext("cannot open %s\n")
670Sstevel@tonic-gate 
680Sstevel@tonic-gate #define	OPEN_FAIL_PCFS	gettext("cannot open /boot/grub/stage2 on pcfs\n")
690Sstevel@tonic-gate 
705589Ssy25831 #define	PART_FAIL	\
715589Ssy25831 	gettext("cannot get the partition information of the disk\n")
725589Ssy25831 
735589Ssy25831 #define	BAD_PART	\
745589Ssy25831 	gettext("Partition %d of the disk has an incorrect offset\n")
755589Ssy25831 
760Sstevel@tonic-gate #define	READ_FAIL_STAGE1	gettext("cannot read stage1 file %s\n")
770Sstevel@tonic-gate 
78322Sjongkis #define	READ_FAIL_STAGE2	gettext("cannot read stage2 file %s\n")
790Sstevel@tonic-gate 
800Sstevel@tonic-gate #define	READ_FAIL_BPB	gettext("cannot read bios parameter block\n")
810Sstevel@tonic-gate 
820Sstevel@tonic-gate #define	READ_FAIL_MBR	gettext("cannot read MBR on %s\n")
830Sstevel@tonic-gate 
840Sstevel@tonic-gate #define	WRITE_FAIL_BOOTSEC	gettext("cannot write master boot sector\n")
850Sstevel@tonic-gate 
860Sstevel@tonic-gate #define	WRITE_FAIL_PBOOT	gettext("cannot write partition boot sector\n")
870Sstevel@tonic-gate 
880Sstevel@tonic-gate #define	WRITE_FAIL_STAGE2	gettext("failed to write stage2\n")
890Sstevel@tonic-gate 
900Sstevel@tonic-gate #define	WRITE_FAIL_STAGE2_BLOCKS	\
910Sstevel@tonic-gate     gettext("stage2 read/write error: read %d bytes, wrote %d bytes\n")
920Sstevel@tonic-gate 
930Sstevel@tonic-gate #define	WRITE_MBOOT	gettext("stage1 written to master boot sector\n")
940Sstevel@tonic-gate 
950Sstevel@tonic-gate #define	WRITE_PBOOT	\
960Sstevel@tonic-gate     gettext("stage1 written to partition %d sector 0 (abs %d)\n")
970Sstevel@tonic-gate 
980Sstevel@tonic-gate #define	WRITE_BOOTSEC_FLOPPY	\
990Sstevel@tonic-gate     gettext("stage1 written to floppy boot sector\n")
1000Sstevel@tonic-gate 
1010Sstevel@tonic-gate #define	WRITE_STAGE2_PCFS	gettext("stage2 written to pcfs\n")
1020Sstevel@tonic-gate 
103322Sjongkis #define	WRITE_STAGE2_DISK	gettext("stage2 written to partition %d," \
104322Sjongkis 	" %d sectors starting at %d (abs %d)\n")
1050Sstevel@tonic-gate 
1060Sstevel@tonic-gate #define	PCFS_FRAGMENTED	\
1070Sstevel@tonic-gate     gettext("cannot install stage2 on pcfs, too many fragments.\n")
1080Sstevel@tonic-gate 
1090Sstevel@tonic-gate #define	OUT_OF_MEMORY	gettext("diskread: out of memory\n")
1100Sstevel@tonic-gate 
11110021SSheshadri.Vasudevan@Sun.COM #define	NO_VIRT_GEOM	gettext("Could not get virtual geometry\n")
11210021SSheshadri.Vasudevan@Sun.COM 
11310021SSheshadri.Vasudevan@Sun.COM #define	NO_PHYS_GEOM	gettext("Could not get physical geometry\n")
11410021SSheshadri.Vasudevan@Sun.COM 
11510021SSheshadri.Vasudevan@Sun.COM #define	NO_LABEL_GEOM	gettext("Could not get label geometry\n")
11610021SSheshadri.Vasudevan@Sun.COM 
11710021SSheshadri.Vasudevan@Sun.COM #define	LIBFDISK_INIT_FAIL	gettext("Failed to initialize libfdisk.\n")
11810021SSheshadri.Vasudevan@Sun.COM 
11910568SVikram.Hegde@Sun.COM 
12010568SVikram.Hegde@Sun.COM 
1210Sstevel@tonic-gate #ifdef	__cplusplus
1220Sstevel@tonic-gate }
1230Sstevel@tonic-gate #endif
1240Sstevel@tonic-gate 
1250Sstevel@tonic-gate #endif /* _MESSAGE_H */
126