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 BOOTPAR gettext("Solaris partition not found. Abort operation.\n") 38 39 #define BOOTPAR_INACTIVE gettext("Solaris boot partition inactive.\n") 40 41 #define BOOTPAR_NOTFOUND \ 42 gettext("Solaris boot partition not found on %s\n") 43 44 #define NOT_RAW_DEVICE gettext("device %s is not a char special device\n") 45 46 #define NOT_ROOT_SLICE gettext("raw device must be a root slice (not s2)\n") 47 48 #define CONVERT_FAIL gettext("cannot convert %s to a block device.\n") 49 50 #define MOUNT_FAIL gettext("cannot mount %s\n") 51 52 #define MOUNT_FAIL_PCFS gettext("floppy: cannot mount pcfs\n") 53 54 #define MBOOT_PROMPT \ 55 gettext("Updating master boot sector destroys existing boot " \ 56 "managers (if any).\ncontinue (y/n)?") 57 58 #define MBOOT_NOT_UPDATED gettext("master boot sector not updated\n") 59 60 #define OPEN_FAIL gettext("cannot open/stat device %s\n") 61 62 #define OPEN_FAIL_FILE gettext("cannot open %s\n") 63 64 #define OPEN_FAIL_PCFS gettext("cannot open /boot/grub/stage2 on pcfs\n") 65 66 #define PART_FAIL \ 67 gettext("cannot get the partition information of the disk\n") 68 69 #define BAD_PART \ 70 gettext("Partition %d of the disk has an incorrect offset\n") 71 72 #define READ_FAIL_STAGE1 gettext("cannot read stage1 file %s\n") 73 74 #define READ_FAIL_STAGE2 gettext("cannot read stage2 file %s\n") 75 76 #define READ_FAIL_BPB gettext("cannot read bios parameter block\n") 77 78 #define READ_FAIL_MBR gettext("cannot read MBR on %s\n") 79 80 #define WRITE_FAIL_BOOTSEC gettext("cannot write master boot sector\n") 81 82 #define WRITE_FAIL_PBOOT gettext("cannot write partition boot sector\n") 83 84 #define WRITE_FAIL_STAGE2 gettext("failed to write stage2\n") 85 86 #define WRITE_FAIL_STAGE2_BLOCKS \ 87 gettext("stage2 read/write error: read %d bytes, wrote %d bytes\n") 88 89 #define WRITE_MBOOT gettext("stage1 written to master boot sector\n") 90 91 #define WRITE_PBOOT \ 92 gettext("stage1 written to partition %d sector 0 (abs %d)\n") 93 94 #define WRITE_BOOTSEC_FLOPPY \ 95 gettext("stage1 written to floppy boot sector\n") 96 97 #define WRITE_STAGE2_PCFS gettext("stage2 written to pcfs\n") 98 99 #define WRITE_STAGE2_DISK gettext("stage2 written to partition %d," \ 100 " %d sectors starting at %d (abs %d)\n") 101 102 #define PCFS_FRAGMENTED \ 103 gettext("cannot install stage2 on pcfs, too many fragments.\n") 104 105 #define OUT_OF_MEMORY gettext("diskread: out of memory\n") 106 107 #define NO_VIRT_GEOM gettext("Could not get virtual geometry\n") 108 109 #define NO_PHYS_GEOM gettext("Could not get physical geometry\n") 110 111 #define NO_LABEL_GEOM gettext("Could not get label geometry\n") 112 113 #define LIBFDISK_INIT_FAIL gettext("Failed to initialize libfdisk.\n") 114 115 #ifdef __cplusplus 116 } 117 #endif 118 119 #endif /* _MESSAGE_H */ 120