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 FILE_MISS gettext("file not found: %s\n") 370Sstevel@tonic-gate 380Sstevel@tonic-gate #define ARCH_EXEC_MISS gettext("archive creation file not found: %s: %s\n") 390Sstevel@tonic-gate 400Sstevel@tonic-gate #define DIR_MISS gettext("directory not found: %s\n") 410Sstevel@tonic-gate 420Sstevel@tonic-gate #define MUST_BE_ROOT gettext("you must be root to run this program\n") 430Sstevel@tonic-gate 44316Svikram #define NOT_GRUB_BOOT gettext("%s: not a GRUB boot OS instance\n") 450Sstevel@tonic-gate 460Sstevel@tonic-gate #define MULT_CMDS gettext("multiple commands specified: -%c\n") 470Sstevel@tonic-gate 480Sstevel@tonic-gate #define INVALID_SUBCMD gettext("invalid sub-command specified: %s\n") 490Sstevel@tonic-gate 500Sstevel@tonic-gate #define NEED_SUBCMD gettext("this command requires a sub-command\n") 510Sstevel@tonic-gate 520Sstevel@tonic-gate #define NEED_CMD gettext("a command option must be specified\n") 530Sstevel@tonic-gate 540Sstevel@tonic-gate #define CMD_ERR gettext("command failed with errors: %s\n") 550Sstevel@tonic-gate 560Sstevel@tonic-gate #define DUP_OPT gettext("duplicate options specified: -%c\n") 570Sstevel@tonic-gate 580Sstevel@tonic-gate #define BAD_OPT gettext("invalid option or missing option argument: -%c\n") 590Sstevel@tonic-gate 600Sstevel@tonic-gate #define NO_ARG gettext("missing or too many command argument(s)\n") 610Sstevel@tonic-gate 620Sstevel@tonic-gate #define NO_OPT_REQ gettext("this sub-command (%s) does not take options\n") 630Sstevel@tonic-gate 640Sstevel@tonic-gate #define MISS_OPT gettext("an option is required for this sub-command: %s\n") 650Sstevel@tonic-gate 660Sstevel@tonic-gate #define ABS_PATH_REQ gettext("path is not absolute: %s\n") 670Sstevel@tonic-gate 680Sstevel@tonic-gate #define TOO_LONG gettext("the following line is too long (> %d chars)\n\t%s\n") 690Sstevel@tonic-gate 700Sstevel@tonic-gate #define NOT_ON_SPARC gettext("this operation is not supported on sparc\n") 710Sstevel@tonic-gate 720Sstevel@tonic-gate #define NEED_ALT_ROOT gettext("an alternate root must be specified\n") 730Sstevel@tonic-gate 74*621Svikram #define ALT_ROOT_INVALID \ 75*621Svikram gettext("an alternate root (%s) cannot be used with this sub-command\n") 76*621Svikram 770Sstevel@tonic-gate #define NO_FILE_ENTRY gettext("file not in list: %s\n") 780Sstevel@tonic-gate 790Sstevel@tonic-gate #define DUP_FILE_ENTRY gettext("file already in list: %s\n") 800Sstevel@tonic-gate 810Sstevel@tonic-gate #define NO_ENTRY gettext("no %s entry found\n") 820Sstevel@tonic-gate 830Sstevel@tonic-gate #define NO_MATCH_ENTRY gettext("no matching entry found\n") 840Sstevel@tonic-gate 850Sstevel@tonic-gate #define NO_BOOTADM_MATCH gettext("no matching bootadm entry found\n") 860Sstevel@tonic-gate 870Sstevel@tonic-gate #define NO_MEM gettext("could not allocate memory: size = %u\n") 880Sstevel@tonic-gate 89*621Svikram #define CANNOT_LOCATE_GRUB_MENU gettext("cannot find GRUB menu\n") 90*621Svikram 91*621Svikram #define GRUB_MENU_DEVICE \ 92*621Svikram gettext("The location for the active GRUB menu is: %s (not mounted)\n") 93*621Svikram 94*621Svikram #define GRUB_MENU_FSTYPE \ 95*621Svikram gettext("The filesystem type of the menu device is <%s>\n") 96*621Svikram 97*621Svikram #define GRUB_MENU_PATH gettext("The location for the active GRUB menu is: %s\n") 98*621Svikram 99*621Svikram #define STUBBOOT_DIR_NOT_FOUND gettext("cannot find stubboot directory\n") 100*621Svikram 1010Sstevel@tonic-gate #define NO_CMD gettext("no command at line %d\n") 1020Sstevel@tonic-gate 1030Sstevel@tonic-gate #define DUP_CMD \ 1040Sstevel@tonic-gate gettext("duplicate command %s at line %d of %sboot/grub/menu.lst\n") 1050Sstevel@tonic-gate 1060Sstevel@tonic-gate #define INVALID_TIMEOUT gettext("invalid timeout value: %s\n") 1070Sstevel@tonic-gate 1080Sstevel@tonic-gate #define NO_MENU gettext("menu file not found: %s\n") 1090Sstevel@tonic-gate 1100Sstevel@tonic-gate #define LIST_TITLE gettext("%d %s\n") 1110Sstevel@tonic-gate 1120Sstevel@tonic-gate #define GLOBAL_CMD gettext("%s %s\n") 1130Sstevel@tonic-gate 1140Sstevel@tonic-gate #define REGCOMP_FAIL gettext("regular expression failed to compile\n") 1150Sstevel@tonic-gate 1160Sstevel@tonic-gate #define INVALID_ENTRY gettext("invalid boot entry number: %s\n") 1170Sstevel@tonic-gate 1180Sstevel@tonic-gate #define DUP_ENTRY gettext("a boot entry with this title already exists: %s\n") 1190Sstevel@tonic-gate 1200Sstevel@tonic-gate #define LIST_ENTRY gettext("%s\n") 1210Sstevel@tonic-gate 1220Sstevel@tonic-gate #define SUBOPT_VALUE gettext("suboption %s requires a value\n") 1230Sstevel@tonic-gate 1240Sstevel@tonic-gate #define INVALID_SUBOPT gettext("invalid suboption: %s\n") 1250Sstevel@tonic-gate 1260Sstevel@tonic-gate #define SUBOPT_MISS gettext("missing suboption: %s\n") 1270Sstevel@tonic-gate 1280Sstevel@tonic-gate #define INVALID_HDR gettext("invalid entry header: %s\n") 1290Sstevel@tonic-gate 1300Sstevel@tonic-gate #define INVALID_TITLE gettext("invalid title entry: %s\n") 1310Sstevel@tonic-gate 1320Sstevel@tonic-gate #define INVALID_ROOT gettext("invalid root entry: %s\n") 1330Sstevel@tonic-gate 1340Sstevel@tonic-gate #define INVALID_KERNEL gettext("invalid kernel entry: %s\n") 1350Sstevel@tonic-gate 1360Sstevel@tonic-gate #define INVALID_MODULE gettext("invalid module entry: %s\n") 1370Sstevel@tonic-gate 1380Sstevel@tonic-gate #define INVALID_FOOTER gettext("invalid entry footer: %s\n") 1390Sstevel@tonic-gate 1400Sstevel@tonic-gate #define EMPTY_FILE gettext("file is missing or empty: %s\n") 1410Sstevel@tonic-gate 1420Sstevel@tonic-gate #define UNLINK_EMPTY gettext("file is empty, deleting file: %s\n") 1430Sstevel@tonic-gate 1440Sstevel@tonic-gate #define UNLINK_FAIL gettext("failed to unlink file: %s: %s\n") 1450Sstevel@tonic-gate 1460Sstevel@tonic-gate #define NOT_CHR gettext("not a character device: %s\n") 1470Sstevel@tonic-gate 1480Sstevel@tonic-gate #define NO_DIR gettext("directory not found: %s\n") 1490Sstevel@tonic-gate 1500Sstevel@tonic-gate #define NOT_DIR gettext("not a directory: %s\n") 1510Sstevel@tonic-gate 1520Sstevel@tonic-gate #define NO_MATCH gettext("no matching entry found: %s\n") 1530Sstevel@tonic-gate 1540Sstevel@tonic-gate #define INVALID_OPT gettext("invalid option: %s\n") 1550Sstevel@tonic-gate 1560Sstevel@tonic-gate #define FAILED_SIG gettext("Cannot set SIGCHLD disposition: %s\n") 1570Sstevel@tonic-gate 1580Sstevel@tonic-gate #define CANT_UNBLOCK_SIGCHLD gettext("Cannot unblock SIGCHLD: %s\n") 1590Sstevel@tonic-gate 1600Sstevel@tonic-gate #define BLOCKED_SIG gettext("SIGCHLD signal blocked. Cannot exec: %s\n") 1610Sstevel@tonic-gate 1620Sstevel@tonic-gate #define POPEN_FAIL gettext("popen failed: %s\n") 1630Sstevel@tonic-gate 1640Sstevel@tonic-gate #define PCLOSE_FAIL gettext("pclose failed: %s\n") 1650Sstevel@tonic-gate 1660Sstevel@tonic-gate #define EXEC_FAIL gettext("command terminated abnormally: %s: %d\n") 1670Sstevel@tonic-gate 1680Sstevel@tonic-gate #define INVALID_ARCH_FS \ 1690Sstevel@tonic-gate gettext("invalid or unsupported archive filesystem: %s\n") 1700Sstevel@tonic-gate 1710Sstevel@tonic-gate #define NEED_FORCE \ 1720Sstevel@tonic-gate gettext("This operation is only supported with the force flag (-f)\n") 1730Sstevel@tonic-gate 1740Sstevel@tonic-gate #define REL_PATH_REQ \ 1750Sstevel@tonic-gate gettext("path (%s) must be relative to root. For example: etc/foo\n") 1760Sstevel@tonic-gate 1770Sstevel@tonic-gate #define OPEN_FAIL gettext("failed to open file: %s: %s\n") 1780Sstevel@tonic-gate 1790Sstevel@tonic-gate #define LOCK_FAIL gettext("failed to lock file: %s: %s\n") 1800Sstevel@tonic-gate 1810Sstevel@tonic-gate #define UNLOCK_FAIL gettext("failed to unlock file: %s: %s\n") 1820Sstevel@tonic-gate 1830Sstevel@tonic-gate #define FILE_LOCKED gettext("Another instance of bootadm (pid %u) is running\n") 1840Sstevel@tonic-gate 1850Sstevel@tonic-gate #define FLIST_FAIL \ 1860Sstevel@tonic-gate gettext("failed to open archive filelist: %s: %s\n") 1870Sstevel@tonic-gate 1880Sstevel@tonic-gate #define NO_FLIST gettext("archive filelist is empty\n") 1890Sstevel@tonic-gate 1900Sstevel@tonic-gate #define CLOSE_FAIL gettext("failed to close file: %s: %s\n") 1910Sstevel@tonic-gate 1920Sstevel@tonic-gate #define RENAME_FAIL gettext("rename to file failed: %s: %s\n") 1930Sstevel@tonic-gate 1940Sstevel@tonic-gate #define NOT_IN_MNTTAB gettext("alternate root %s not in mnttab\n") 1950Sstevel@tonic-gate 1960Sstevel@tonic-gate #define CANT_RESOLVE gettext("cannot resolve path %s: %s\n") 1970Sstevel@tonic-gate 1980Sstevel@tonic-gate #define ROOT_ABS gettext("this sub-command doesn't take root arguments: %s\n") 1990Sstevel@tonic-gate 2000Sstevel@tonic-gate #define RDONLY_FS gettext("read-only filesystem: %s\n") 2010Sstevel@tonic-gate 2020Sstevel@tonic-gate #define ARCHIVE_FAIL gettext("failed to create boot archive: %s\n") 2030Sstevel@tonic-gate 2040Sstevel@tonic-gate #define ARCHIVE_NOT_CREATED gettext("couldn't create boot archive: %s\n") 2050Sstevel@tonic-gate 2060Sstevel@tonic-gate #define WRITE_FAIL gettext("write to file failed: %s: %s\n") 2070Sstevel@tonic-gate 2080Sstevel@tonic-gate #define STAT_FAIL gettext("stat of file failed: %s: %s\n") 2090Sstevel@tonic-gate 2100Sstevel@tonic-gate #define PACK_FAIL gettext("failed to pack stat data: %s\n") 2110Sstevel@tonic-gate 2120Sstevel@tonic-gate #define NVALLOC_FAIL gettext("failed to create stat data: %s\n") 2130Sstevel@tonic-gate 2140Sstevel@tonic-gate #define NVADD_FAIL gettext("failed to update stat data for: %s: %s\n") 2150Sstevel@tonic-gate 2160Sstevel@tonic-gate #define NOT_NV gettext("option is not a name=value pair: %s\n") 2170Sstevel@tonic-gate 2180Sstevel@tonic-gate #define DISKMAP_FAIL gettext("cannot map disk %s to grub name\n") 2190Sstevel@tonic-gate 2200Sstevel@tonic-gate #define DISKMAP_FAIL_NONFATAL \ 2210Sstevel@tonic-gate gettext("cannot map disk %s to grub name, assume disk 0.\n") 2220Sstevel@tonic-gate 2230Sstevel@tonic-gate #define WARN_BOOT \ 2240Sstevel@tonic-gate gettext("WARNING: Incorrect use of this command may make \ 2250Sstevel@tonic-gate the system unbootable\n") 2260Sstevel@tonic-gate 2270Sstevel@tonic-gate #define WARN_FAILSAFE_BOOT \ 2280Sstevel@tonic-gate gettext("WARNING: Incorrect use of this command may make \ 2290Sstevel@tonic-gate the failsafe archive unbootable\n") 2300Sstevel@tonic-gate 2310Sstevel@tonic-gate #define UPDATE_NO_STAT \ 2320Sstevel@tonic-gate gettext("%s state file %s not found.\n") 2330Sstevel@tonic-gate 2340Sstevel@tonic-gate #define CHECK_NOT_SUPPORTED \ 2350Sstevel@tonic-gate gettext("the check option is not supported with subcmd: %s\n") 2360Sstevel@tonic-gate 2370Sstevel@tonic-gate #define PARSEABLE_NEW_FILE gettext(" new %s\n") 2380Sstevel@tonic-gate 2390Sstevel@tonic-gate #define PARSEABLE_OUT_DATE gettext(" changed %s\n") 2400Sstevel@tonic-gate 2410Sstevel@tonic-gate #define UPDATE_FORCE gettext("forced update of archive requested\n") 2420Sstevel@tonic-gate 2430Sstevel@tonic-gate #define NO_NEW_STAT gettext("cannot create new stat data\n") 2440Sstevel@tonic-gate 2450Sstevel@tonic-gate #define UPDATE_ARCH_MISS gettext("archive not found: %s\n") 2460Sstevel@tonic-gate 2470Sstevel@tonic-gate #define READ_FAIL gettext("read failed for file: %s: %s\n") 2480Sstevel@tonic-gate 2490Sstevel@tonic-gate #define UNPACK_FAIL gettext("failed to unpack stat data: %s: %s\n") 2500Sstevel@tonic-gate 2510Sstevel@tonic-gate #define NFTW_FAIL gettext("cannot find: %s: %s\n") 2520Sstevel@tonic-gate 2530Sstevel@tonic-gate #define NVL_ALLOC_FAIL gettext("failed to alloc nvlist: %s\n") 2540Sstevel@tonic-gate 2550Sstevel@tonic-gate #define STATVFS_FAIL gettext("statvfs failed for %s: %s\n") 2560Sstevel@tonic-gate 2570Sstevel@tonic-gate #define IS_RAMDISK gettext("%s is on a ramdisk device\n") 2580Sstevel@tonic-gate 2590Sstevel@tonic-gate #define SKIP_RAMDISK gettext("Skipping archive creation\n") 2600Sstevel@tonic-gate 2610Sstevel@tonic-gate #define PRINT gettext("%s\n") 2620Sstevel@tonic-gate 2630Sstevel@tonic-gate #define PRINT_NO_NEWLINE gettext("%s") 2640Sstevel@tonic-gate 2650Sstevel@tonic-gate #define PRINT_TITLE gettext("%d %s\n") 2660Sstevel@tonic-gate 2670Sstevel@tonic-gate #define INT_ERROR gettext("Internal error: %s\n") 2680Sstevel@tonic-gate 2690Sstevel@tonic-gate #define CANT_FIND_USER \ 2700Sstevel@tonic-gate gettext("getpwnam: uid for %s failed, defaulting to %d\n") 2710Sstevel@tonic-gate 2720Sstevel@tonic-gate #define CANT_FIND_GROUP \ 2730Sstevel@tonic-gate gettext("getgrnam: gid for %s failed, defaulting to %d\n") 2740Sstevel@tonic-gate 2750Sstevel@tonic-gate #define CHMOD_FAIL gettext("chmod operation on %s failed - %s\n") 2760Sstevel@tonic-gate 2770Sstevel@tonic-gate #define CHOWN_FAIL gettext("chgrp operation on %s failed - %s\n") 2780Sstevel@tonic-gate 279316Svikram #define MISSING_SLICE_FILE gettext("GRUB slice file %s missing: %s\n") 280316Svikram 281316Svikram #define BAD_SLICE_FILE gettext("Invalid GRUB slice file %s\n") 282316Svikram 283316Svikram #define MKDIR_FAILED gettext("mkdir of %s failed: %s\n") 284316Svikram 285*621Svikram #define MOUNT_FAILED gettext("mount of %s (fstype %s) failed\n") 286*621Svikram 287*621Svikram #define MOUNT_MNTPT_FAILED gettext("mount at %s failed\n") 288316Svikram 289316Svikram #define RMDIR_FAILED gettext("rmdir of %s failed: %s\n") 290316Svikram 291348Svikram #define UMOUNT_FAILED gettext("unmount of %s failed\n") 292316Svikram 293316Svikram #define CANNOT_RESTORE_GRUB_SLICE gettext("cannot restore GRUB slice\n") 294316Svikram 295316Svikram #define RESTORE_GRUB_FAILED gettext("cannot restore GRUB loader\n") 296316Svikram 297316Svikram #define MISSING_BACKUP_MENU gettext("no backup menu %s: %s\n") 298316Svikram 299316Svikram #define RESTORE_MENU_FAILED gettext("cannot restore menu %s\n") 300316Svikram 301316Svikram #define MISSING_ROOT_FILE gettext("file missing: %s: %s\n") 302316Svikram 303316Svikram #define BAD_ROOT_FILE gettext("file is invalid: %s\n") 304316Svikram 305316Svikram #define RESTORING_GRUB \ 306316Svikram gettext("No GRUB installation found. Restoring GRUB from backup\n") 307316Svikram 308316Svikram #define REBOOT_WITH_ARGS_FAILED \ 309316Svikram gettext("Cannot update menu. Cannot reboot with requested arguments\n") 310316Svikram 3110Sstevel@tonic-gate #ifdef __cplusplus 3120Sstevel@tonic-gate } 3130Sstevel@tonic-gate #endif 3140Sstevel@tonic-gate 3150Sstevel@tonic-gate #endif /* _MESSAGE_H */ 316