summaryrefslogtreecommitdiff
path: root/usr/src/cmd/boot/bootadm/message.h
blob: d2141441e6bf6761ce05b1dce25976fe0b9e9f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
/*
 * CDDL HEADER START
 *
 * The contents of this file are subject to the terms of the
 * Common Development and Distribution License (the "License").
 * You may not use this file except in compliance with the License.
 *
 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
 * or http://www.opensolaris.org/os/licensing.
 * See the License for the specific language governing permissions
 * and limitations under the License.
 *
 * When distributing Covered Code, include this CDDL HEADER in each
 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
 * If applicable, add the following below this CDDL HEADER, with the
 * fields enclosed by brackets "[]" replaced with your own identifying
 * information: Portions Copyright [yyyy] [name of copyright owner]
 *
 * CDDL HEADER END
 */
/*
 * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
 * Use is subject to license terms.
 * Copyright 2014 Toomas Soome <tsoome@me.com>
 */

#ifndef	_MESSAGE_H
#define	_MESSAGE_H

#ifdef	__cplusplus
extern "C" {
#endif

#include <libintl.h>

#define	FILE_MISS gettext("file not found: %s\n")

#define	ARCH_EXEC_MISS gettext("archive creation file not found: %s: %s\n")

#define	PATH_EXEC_OWNER gettext("%s is not owned by %d, skipping\n")

#define	PATH_EXEC_LINK gettext("%s is not a regular file, skipping\n")

#define	PATH_EXEC_PERMS gettext("%s is others or group writable, skipping\n")

#define	UPDATE_CACHE_OLD gettext("archive cache is out of sync. Rebuilding.\n")

#define	MUST_BE_ROOT gettext("you must be root to run this command\n")

#define	NOT_ARCHIVE_BOOT \
	gettext("%s: not a boot archive based Solaris instance\n")

#define	MULT_CMDS gettext("multiple commands specified: -%c\n")

#define	INVALID_SUBCMD gettext("invalid sub-command specified: %s\n")

#define	NEED_SUBCMD gettext("this command requires a sub-command\n")

#define	NEED_CMD gettext("a command option must be specified\n")

#define	DUP_OPT gettext("duplicate options specified: -%c\n")

#define	BAD_OPT gettext("invalid option or missing option argument: -%c\n")

#define	NO_OPT_REQ gettext("this sub-command (%s) does not take options\n")

#define	MISS_OPT gettext("an option is required for this sub-command: %s\n")

#define	ABS_PATH_REQ gettext("path is not absolute: %s\n")

#define	PATH_TOO_LONG \
	gettext("unable to create path on mountpoint %s, path too long\n")

#define	TOO_LONG gettext("the following line is too long (> %d chars)\n\t%s\n")

#define	NOT_GRUB_BOOT \
    gettext("not a GRUB 0.97 based Illumos instance. Operation not supported\n")

#define	NOT_GRUB_ROOT gettext("missing /boot/grub on root: %s\n")

#define	ALT_ROOT_INVALID \
    gettext("an alternate root (%s) cannot be used with this sub-command\n")

#define	NO_ENTRY gettext("no %s entry found\n")

#define	NO_MATCH_ENTRY gettext("no matching entry found\n")

#define	NO_BOOTADM_MATCH gettext("no matching bootadm entry found\n")

#define	NO_MEM gettext("could not allocate memory: size = %u\n")

#define	NO_SPARC gettext("%s operation unsupported on SPARC machines\n")

#define	CANNOT_LOCATE_GRUB_MENU gettext("cannot find GRUB menu\n")

#define	CANNOT_LOCATE_GRUB_MENU_FILE gettext("cannot find GRUB menu file: %s\n")

#define	GRUB_MENU_PATH gettext("the location for the active GRUB menu is: %s\n")

#define	STUBBOOT_DIR_NOT_FOUND gettext("cannot find stubboot directory\n")

#define	NO_CMD gettext("no command at line %d\n")

#define	DUP_CMD \
    gettext("duplicate command %s at line %d of %sboot/grub/menu.lst\n")

#define	NO_MENU gettext("menu file not found: %s\n")

#define	GLOBAL_CMD gettext("%s %s\n")

#define	INVALID_ENTRY gettext("invalid boot entry number: %s\n")

#define	INVALID_OPTION gettext("invalid option: %s\n")

#define	SUBOPT_MISS gettext("missing suboption: %s\n")

#define	NO_KERNEL gettext("no kernel line found in entry %d\n")

#define	EMPTY_MENU gettext("the GRUB menu is empty\n")

#define	UNLINK_EMPTY gettext("file is empty, deleting file: %s\n")

#define	UNLINK_FAIL gettext("failed to unlink file: %s: %s\n")

#define	NO_MATCH gettext("no matching entry found: %s\n")

#define	INVALID_OPT gettext("invalid option: %s\n")

#define	FAILED_SIG gettext("cannot set SIGCHLD disposition: %s\n")

#define	CANT_UNBLOCK_SIGCHLD gettext("cannot unblock SIGCHLD: %s\n")

#define	NO3264ELF \
    gettext("WARNING: file %s is neither a 32-bit nor a 64-bit ELF\n")

#define	BLOCKED_SIG gettext("SIGCHLD signal blocked. Cannot exec: %s\n")

#define	POPEN_FAIL gettext("popen failed: %s\n")

#define	PCLOSE_FAIL gettext("pclose failed: %s\n")

#define	EXEC_FAIL gettext("command terminated abnormally: %s: %d\n")

#define	OPEN_FAIL gettext("failed to open file: %s: %s\n")

#define	LOCK_FAIL gettext("failed to lock file: %s: %s\n")

#define	UNLOCK_FAIL gettext("failed to unlock file: %s: %s\n")

#define	TIMESTAMP_FAIL gettext("failed to update the timestamp file, next\
    archive update may experience reduced performance\n")

#define	MMAP_FAIL gettext("failed to mmap file: %s: %s\n")

#define	FILE_LOCKED gettext("another instance of bootadm (pid %u) is running\n")

#define	NO_FLIST gettext("archive filelist is empty\n")

#define	CLOSE_FAIL gettext("failed to close file: %s: %s\n")

#define	RENAME_FAIL gettext("rename to file failed: %s: %s\n")

#define	NOT_IN_MNTTAB gettext("alternate root %s not in mnttab\n")

#define	CANT_RESOLVE gettext("cannot resolve path %s: %s\n")

#define	ROOT_ABS gettext("this sub-command doesn't take root arguments: %s\n")

#define	ARCHIVE_FAIL gettext("boot-archive creation FAILED, command: '%s'\n")

#define	MULTI_FAIL \
    gettext("Command '%s' failed while generating multisession archive\n")

#define	INFILE_FAIL gettext("unable to read from %s: %s\n")

#define	ARCHIVE_BAD gettext("archive file %s not generated correctly\n")

#define	CACHE_FAIL	\
    gettext("Failed to gather cache files, archives generation aborted\n")

#define	BOOTBLK_FAIL gettext("unable to access bootblk file : %s\n")

#define	WRITE_FAIL gettext("write to file failed: %s: %s\n")

#define	GZ_WRITE_FAIL gettext("failed to write to %s\n")

#define	STAT_FAIL gettext("stat of file failed: %s: %s\n")

#define	PACK_FAIL gettext("failed to pack stat data: %s\n")

#define	NVALLOC_FAIL gettext("failed to create stat data: %s\n")

#define	NVADD_FAIL gettext("failed to update stat data for: %s: %s\n")

#define	DISKMAP_FAIL \
    gettext("create_diskmap command failed for OS root: %s.\n")

#define	BIOSDEV_SKIP \
    gettext("not using biosdev command for disk: %s.\n")

#define	CHECK_NOT_SUPPORTED \
	gettext("the check option is not supported with subcmd: %s\n")

#define	PARSEABLE_NEW_FILE	gettext("    new     %s\n")

#define	PARSEABLE_OUT_DATE	gettext("    changed %s\n")

#define	PARSEABLE_STALE_FILE	gettext("    stale %s\n")

#define	UPDATE_FORCE gettext("forced update of archive requested\n")

#define	NO_NEW_STAT gettext("cannot create new stat data\n")

#define	UPDATE_ARCH_MISS gettext("archive not found: %s\n")

#define	UPDATE_CDIR_MISS gettext("archive cache directory not found: %s\n")

#define	MULTI_SIZE \
    gettext("archive %s is bigger than %d bytes and will be rebuilt\n")

#define	READ_FAIL gettext("read failed for file: %s: %s\n")

#define	UNPACK_FAIL gettext("failed to unpack stat data: %s: %s\n")

#define	NFTW_FAIL gettext("cannot find: %s: %s\n")

#define	SIGN_FAIL gettext("iso descriptor signature for %s is invalid\n")

#define	STATVFS_FAIL gettext("statvfs failed for %s: %s\n")

#define	IS_RAMDISK gettext("%s is on a ramdisk device\n")

#define	PRINT gettext("%s\n")

#define	PRINT_TITLE gettext("%d %s\n")

#define	INT_ERROR gettext("Internal error: %s\n")

#define	CANT_FIND_USER \
	gettext("getpwnam: uid for %s failed, defaulting to %d\n")

#define	CANT_FIND_GROUP \
	gettext("getgrnam: gid for %s failed, defaulting to %d\n")

#define	CHMOD_FAIL gettext("chmod operation on %s failed - %s\n")

#define	CHOWN_FAIL gettext("chgrp operation on %s failed - %s\n")

#define	MISSING_SLICE_FILE gettext("GRUB slice file %s missing: %s\n")

#define	MKDIR_FAILED gettext("mkdir of %s failed: %s\n")

#define	MOUNT_FAILED gettext("mount of %s (fstype %s) failed\n")

#define	MOUNT_MNTPT_FAILED gettext("mount at %s failed\n")

#define	UMOUNT_FAILED gettext("umount of %s failed\n")

#define	CANNOT_RESTORE_GRUB_SLICE gettext("cannot restore GRUB slice\n")

#define	RESTORE_GRUB_FAILED gettext("cannot restore GRUB loader\n")

#define	MISSING_BACKUP_MENU gettext("no backup menu %s: %s\n")

#define	RESTORE_MENU_FAILED gettext("cannot restore menu %s\n")

#define	MISSING_ROOT_FILE gettext("file missing: %s: %s\n")

#define	BAD_ROOT_FILE gettext("file is invalid: %s\n")

#define	TRAILING_ARGS gettext("invalid trailing arguments\n")

#define	RESTORING_GRUB \
	gettext("No GRUB installation found. Restoring GRUB from backup\n")

#define	REBOOT_WITH_ARGS_ADD_ENTRY_FAILED \
	gettext("Cannot update menu. Cannot reboot with requested arguments\n")

#define	FDISK_FILES_FOUND \
	gettext("Deferred FDISK update file(s) found: %s, %s. Not supported.\n")

#define	UNKNOWN_KERNEL	gettext("unable to expand %s to a full file path.\n")

#define	UNKNOWN_KERNEL_REBOOT	\
	gettext("Rebooting with default kernel and options.\n")

#define	NOT_DBOOT \
	gettext("bootadm set-menu %s may only be run on directboot kernels.\n")

#define	DEFAULT_NOT_BAM	gettext(	\
"Default /boot/grub/menu.lst entry is not controlled by bootadm.  Exiting\n")

#define	CANT_FIND_DEFAULT	\
gettext("unable to find default boot entry (%d) in menu.lst file.\n")

#define	UNKNOWN_KERNEL_LINE	\
gettext("kernel command on line %d not recognized.\n")

#define	UNKNOWN_MODULE_LINE	\
gettext("module command on line %d not recognized.\n")

#define	FINDROOT_NOT_FOUND	\
gettext("findroot in default boot entry (%d) missing.\n")

#define	KERNEL_NOT_FOUND	\
gettext("kernel$ in default boot entry (%d) missing.\n")

#define	KERNEL_NOT_PARSEABLE	\
gettext("kernel$ in default boot entry (%d) missing or not parseable.\n")

#define	MODULE_NOT_PARSEABLE	\
gettext("module$ in default boot entry (%d) missing or not parseable.\n")

#define	NOT_ELF_FILE gettext("%s is not an ELF file.\n")

#define	WRONG_ELF_CLASS gettext("%s is wrong ELF class 0x%x\n")

#define	FAILSAFE_MISSING \
gettext("bootadm -m upgrade run, but the failsafe archives have not been\n\
updated.  Not updating line %d\n")

#define	INVALID_PLAT	\
	gettext("invalid platform %s - must be one of sun4u, sun4v or i86pc\n")

#define	FDISKPART_FAIL gettext("failed to determine fdisk partition: %s\n")

#define	INVALID_MHASH_KEY gettext("invalid key for mnttab hash: %s\n")

#define	INVALID_UFS_SIGNATURE gettext("invalid UFS boot signature: %s\n")

#define	SIGN_LIST_FPUTS_ERR \
	gettext("failed to write signature %s to signature list: %s\n")

#define	SIGNATURE_LIST_EXISTS gettext("	- signature list %s exists\n")

#define	OPENDIR_FAILED gettext("opendir of %s failed: %s\n")

#define	GRUBSIGN_SORT_FAILED gettext("error sorting GRUB UFS boot signatures\n")

#define	SEARCHING_UFS_SIGN gettext("	- searching for UFS boot signatures\n")

#define	ERR_FIND_UFS_SIGN gettext("search for UFS boot signatures failed\n")

#define	UFS_SIGNATURE_LIST_MISS gettext("missing UFS signature list file: %s\n")

#define	UFS_SIGNATURE_LIST_OPENERR \
	gettext("error opening UFS boot signature list file %s: %s\n")

#define	UFS_BADSIGN gettext("bad UFS boot signature: %s\n")

#define	GRUBSIGN_BACKUP_OPENERR \
	gettext("error opening boot signature backup file %s: %s\n")

#define	GRUBSIGN_BACKUP_WRITEERR \
	gettext("error writing boot signature backup file %s: %s\n")

#define	GRUBSIGN_BACKUP_UPDATED \
	gettext("updated boot signature backup file %s\n")

#define	GRUBSIGN_PRIMARY_CREATERR \
	gettext("error creating primary boot signature %s: %s\n")

#define	GRUBSIGN_PRIMARY_SYNCERR \
	gettext("error syncing primary boot signature %s: %s\n")

#define	GRUBSIGN_CREATED_PRIMARY \
	gettext("created primary GRUB boot signature: %s\n")

#define	GRUBSIGN_CREATE_FAIL \
	gettext("failed to create GRUB boot signature for device: %s\n")

#define	GRUBSIGN_WRITE_FAIL \
	gettext("failed to write GRUB boot signature for device: %s\n")

#define	GRUBSIGN_UFS_NONE gettext("	- no existing UFS boot signatures\n")

#define	GRUBSIGN_NOTSUP gettext("boot signature not supported for fstype: %s\n")

#define	GRUBSIGN_MKDIR_ERR \
	gettext("error creating boot signature directory %s: %s\n")

#define	NOT_UFS_SLICE gettext("%s is not a ufs slice: %s\n")

#define	FSTYP_FAILED gettext("fstyp failed for slice: %s\n")

#define	FSTYP_BAD gettext("bad output from fstyp for slice: %s\n")

#define	ZFS_MOUNT_FAILED gettext("mount of ZFS pool %s failed\n")

#define	ZFS_MNTPT_FAILED \
	gettext("failed to determine mount point of ZFS pool %s\n")

#define	NULL_ZFS_MNTPT gettext("ZFS pool %s has no mount-point\n")

#define	BAD_ZFS_MNTPT gettext("ZFS pool %s has bad mount-point %s\n")

#define	NULL_ZFS_MNTPT gettext("ZFS pool %s has no mount-point\n")

#define	BAD_ZFS_MNTED gettext("ZFS pool %s has bad mount status\n")

#define	ZFS_MNTED_FAILED \
	gettext("failed to determine mount status of ZFS pool %s\n")

#define	INT_BAD_MNTSTATE \
	gettext("Internal error: bad saved mount state for pool %s\n")

#define	FSTYP_A_FAILED gettext("fstyp -a on device %s failed\n")

#define	NULL_FSTYP_A gettext("NULL fstyp -a output for device %s\n")

#define	BAD_FSTYP_A gettext("bad fstyp -a output for device %s\n")

#define	INVALID_UFS_SIGN gettext("invalid UFS boot signature %s\n")

#define	CANT_FIND_SPECIAL gettext("cant find special file for mount-point %s\n")

#define	CANT_FIND_POOL gettext("cant find pool for mount-point %s\n")

#define	NULL_FINDROOT gettext("can't find argument for findroot command\n")

#define	INVALID_DEV_DSK gettext("not a /dev/[r]dsk name: %s\n")

#define	CVT_FINDROOT gettext("converting entries to findroot...\n")

#define	CVT_HV gettext("adding xVM entries...\n")

#define	CVT_DBOOT gettext("converting entries to dboot...\n")

#define	DOWNGRADE_NOTSUP \
gettext("automated downgrade of GRUB menu to older version not supported.\n")

#define	CANT_FIND_GRUBSIGN gettext("cannot find GRUB signature for %s\n")

#define	CVT_TODO	\
gettext("one or more GRUB menu entries were not automatically upgraded\n\
For details on manually updating entries, see %s\n")

#define	CVT_ABORT	\
gettext("error upgrading GRUB menu entries on %s. Aborting.\n\
For details on manually updating entries, see %s\n")

#define	ALREADY_HYPER	\
gettext("default entry already setup for use with the hypervisor!\n")

#define	HYPER_ABORT	\
gettext("error converting GRUB menu entry on %s for use with the hypervisor.\n\
Aborting.\n")

#define	ALREADY_METAL	\
gettext("default entry already setup for use with a metal kernel!\n")

#define	METAL_ABORT	\
gettext("error converting GRUB menu entry on %s for use with a metal kernel.\n\
Aborting.\n")

#define	HAND_ADDED_ENTRIES	\
gettext("bootadm(1M) will only upgrade GRUB menu entries added by \n\
bootadm(1M) or lu(1M). The following entries on %s will not be upgraded.\n\
For details on manually updating entries, see %s\n")

#define	SIGN_FSTYPE_MISMATCH	\
gettext("found mismatched boot signature %s for filesystem type: %s.\n")

#define	REBOOT_FSTYPE_FAILED	\
gettext("failed to determine filesystem type for \"/\". Reboot with \n\
arguments failed.\n")

#define	REBOOT_SPECIAL_FAILED	\
gettext("failed to find device special file for \"/\". Reboot with \n\
arguments failed.\n")

#define	REBOOT_SIGN_FAILED	\
gettext("failed to find boot signature. Reboot with arguments failed.\n")

#define	REBOOT_DIRECT_FAILED	\
gettext("the root filesystem is not a dboot Solaris instance. \n\
This version of bootadm is not supported on this version of Solaris.\n")

#define	BOOTENV_FSTYPE_FAILED	\
gettext("cannot determine filesystem type for \"/\".\n\
Cannot generate GRUB menu entry with EEPROM arguments.\n")

#define	BOOTENV_SPECIAL_FAILED	\
gettext("cannot determine device special file for \"/\".\n\
Cannot generate GRUB menu entry with EEPROM arguments.\n")

#define	BOOTENV_SIGN_FAILED	\
gettext("cannot determine boot signature for \"/\".\n\
Cannot generate GRUB menu entry with EEPROM arguments.\n")

#define	GRUB_SLICE_FILE_EXISTS \
	gettext("unsupported GRUB slice file (%s) exists - ignoring.\n")

#define	GRUBSIGN_FOUND_OR_CREATED \
gettext("found or created GRUB signature %s for %s\n")

#define	GET_FSTYPE_ARGS gettext("no OS mountpoint. Cannot determine fstype\n")

#define	MNTTAB_MNTPT_NOT_FOUND \
	gettext("failed to find OS mountpoint %s in %s\n")

#define	MNTTAB_FSTYPE_NULL gettext("NULL fstype found for OS root %s\n")

#define	MISSING_ARG gettext("missing argument for sub-command\n")

#define	INVALID_BINARY gettext("invalid or corrupted binary: %s\n")

#define	PCFS_ROOT_NOTSUP gettext("root <%s> on PCFS is not supported\n")

#define	NO_O_OSROOT gettext("OS root not specified with -o option: %s\n")

#define	RDONLY_FS \
	gettext("%s filesystem is read-only, skipping archives update\n")

#define	RDONLY_TEST_ERROR gettext("error during read-only test on %s: %s\n")

#define	CANNOT_GRUBROOT_BOOTDISK \
	gettext("cannot get (hd?,?,?) for menu. menu not on bootdisk: %s\n")

#define	NO_GRUBROOT_FOR_DISK \
	gettext("cannot determine BIOS disk ID 'hd?' for disk: %s\n")

#define	CACHE_MNTTAB_FAIL gettext("%s: failed to cache /etc/mnttab\n")

#define	FAILED_ADD_SIGNLIST gettext("failed to add sign %s to signlist.\n")

#define	GRUBSIGN_BACKUP_MKDIRERR gettext("mkdirp() of backup dir failed: %s\n")

#define	GET_POOL_FAILED gettext("failed to get pool name from %s\n")

#define	FAIL_MNT_TOP_DATASET gettext("failed to mount top dataset for %s\n")

#define	PRIMARY_SIGN_EXISTS gettext("primary sign %s exists\n")

#define	SET_BACKUP_FAILED gettext("failed to set backup sign (%s) for %s: %s\n")

#define	SET_PRIMARY_FAILED \
gettext("failed to set primary sign (%s) for %s: %s\n")

#define	GET_FSTYPE_FAILED gettext("failed to get fstype for %s\n")

#define	GET_SPECIAL_NULL_MNTPT \
	gettext("cannot get special file: NULL mount-point\n")

#define	GET_SPECIAL_NULL \
	gettext("cannot get special file for mount-point: %s\n")

#define	GET_PHYSICAL_MENU_NULL \
	gettext("cannot get physical device special file for menu root: %s\n")

#define	GET_GRUBSIGN_ERROR \
	gettext("failed to get grubsign for root: %s, device %s\n")

#define	FAILED_TO_ADD_BOOT_ENTRY \
	gettext("failed to add boot entry with title=%s, grub signature=%s\n")

#define	SET_DEFAULT_FAILED gettext("failed to set GRUB menu default to %d\n")

#define	REBOOT_GET_KERNEL_FAILED \
gettext("reboot with arguments: error querying current boot-file settings\n")

#define	REBOOT_GET_ARGS_FAILED \
gettext("reboot with arguments: error querying current boot-args settings\n")

#define	REBOOT_SET_DEFAULT_FAILED \
gettext("reboot with arguments: setting GRUB menu default to %d failed\n")

#define	GET_SET_KERNEL_ADD_BOOT_ENTRY gettext("failed to add boot entry: %s\n")

#define	GET_SET_KERNEL_SET_GLOBAL gettext("failed to set default to: %d\n")

#define	NO_OPTION_ARG gettext("option has no argument: %s\n")

#define	CANT_MOUNT_POOL_DATASET \
	gettext("cannot mount pool dataset for pool: %s\n")

#define	ZFS_GET_POOL_FAILED gettext("failed to get pool for device: %s\n")

#define	ZFS_MOUNT_TOP_DATASET_FAILED \
	gettext("failed to mount top dataset for pool: %s\n")

#define	GET_POOL_OSDEV_NULL gettext("NULL device: cannot determine pool name\n")

#define	GET_POOL_BAD_OSDEV \
gettext("invalid device %s: cannot determine pool name\n")

#define	POOL_SIGN_INCOMPAT \
gettext("pool name %s not present in signature %s\n")

#define	INVALID_ZFS_SPECIAL \
gettext("invalid device for ZFS filesystem: %s\n")

#define	CANT_FIND_POOL_FROM_SPECIAL \
gettext("cannot derive ZFS pool from special: %s\n")

#define	ZFS_GET_POOL_STATUS \
gettext("cannot get zpool status for pool: %s\n")

#define	BAD_ZPOOL_STATUS \
gettext("bad zpool status for pool=%s\n")

#define	NO_POOL_IN_ZPOOL_STATUS \
gettext("no pool name %s in zpool status\n")

#define	NO_PHYS_IN_ZPOOL_STATUS \
gettext("no physical device in zpool status for pool=%s\n")

#define	UFS_GET_PHYS_NOT_SVM \
gettext("not a SVM metadevice: %s. Cannot derive physical device\n")

#define	UFS_GET_PHYS_INVALID_SVM \
gettext("invalid SVM metadevice name: %s. Cannot derive physical device\n")

#define	UFS_SVM_METASTAT_ERR \
gettext("metastat command failed on SVM metadevice: %s\n")

#define	UFS_SVM_METASTAT_SVC_ERR \
gettext("failed to start service %s for metastat command\n")

#define	BAD_UFS_SVM_METASTAT \
gettext("bad output from metastat command on SVM metadevice: %s\n")

#define	INVALID_UFS_SVM_METASTAT \
gettext("invalid fields in metastat output for SVM metadevice: %s\n")

#define	CANNOT_PARSE_UFS_SVM_METASTAT \
gettext("cannot parse output of metastat command for metadevice: %s\n")

#define	CANNOT_PARSE_UFS_SVM_SUBMIRROR \
gettext("cannot parse submirror line in metastat output for metadevice: %s\n")

#define	GET_PHYSICAL_NOTSUP_FSTYPE \
gettext("cannot derive physical device for %s (%s), unsupported filesystem\n")

#define	ERROR_PARSE_UFS_SVM_METASTAT \
gettext("error parsing metastat output for SVM metadevice: %s\n")

#define	GET_OSROOT_SPECIAL_ERR \
gettext("failed to get special file for osroot: %s\n")

#define	GET_MENU_ROOT_SPECIAL_ERR \
gettext("failed to get special file for menu_root: %s\n")

#define	GET_SVC_STATE_ERR gettext("failed to determine state of service: %s\n")

#define	SVC_IS_ONLINE_FAILED \
	gettext("failed to determine if service is online: %s\n")

#define	ENABLE_SVC_FAILED gettext("failed to online service: %s\n")

#define	ERR_SVC_GET_ONLINE \
	gettext("failed to get online status for service: %s\n")

#define	TIMEOUT_ENABLE_SVC \
	gettext("timed out waiting for service to online: %s\n")

#define	CANNOT_READ_LU_CKSUM \
	gettext("failed to read GRUB menu checksum file: %s\n")

#define	MULTIPLE_LU_CKSUM \
	gettext("multiple checksums for GRUB menu in checksum file: %s\n")

#define	CANNOT_PARSE_LU_CKSUM \
	gettext("error parsing GRUB menu checksum file: %s\n")

#define	MENU_CKSUM_FAIL \
	gettext("error generating checksum of GRUB menu\n")

#define	BAD_CKSUM \
	gettext("bad checksum generated for GRUB menu\n")

#define	BAD_CKSUM_PARSE \
	gettext("error parsing checksum generated for GRUB menu\n")

#define	MENU_PROP_FAIL \
	gettext("error propagating updated GRUB menu\n")

#define	MENU_BACKUP_FAIL \
	gettext("failed to create backup for GRUB menu: %s\n")

#define	BACKUP_PROP_FAIL \
	gettext("error propagating backup GRUB menu: %s\n")

#define	MENU_CKSUM_WRITE_FAIL \
	gettext("failed to write GRUB menu checksum file: %s\n")

#define	MENU_CKSUM_PROP_FAIL \
	gettext("error propagating GRUB menu checksum file: %s\n")

#define	BOOTADM_PROP_FAIL \
	gettext("error propagating bootadm: %s\n")

#define	PROP_GRUB_MENU \
	gettext("propagating updated GRUB menu\n")

#define	NEED_DIRPATH	gettext("need to create directory path for %s\n")

#define	UPDT_CACHE_FAIL	gettext("directory cache update failed for %s\n")

#define	NEW_BOOT_ENTRY \
    gettext("unable to modify default entry; creating new boot entry for %s\n")

/*
 * NOTE: The following are debug messages and not I18Ned
 */

#define	D_MATCHED_TITLE "%s: matched title: %s\n"

#define	D_NOMATCH_TITLE "%s: no match title: %s, %s\n"

#define	D_MATCHED_FINDROOT "%s: matched findroot: %s\n"

#define	D_NOMATCH_FINDROOT "%s: no match findroot: %s, %s\n"

#define	D_NOMATCH_FINDROOT_NULL "%s: no match line has findroot, we don't: %s\n"

#define	D_MATCHED_ROOT "%s: matched root: %s\n"

#define	D_NOMATCH_ROOT "%s: no match root: %s, %s\n"

#define	D_NOMATCH_ROOT_NULL "%s: no match, line has root, we don't: %s\n"

#define	D_NO_ROOT_OPT "%s: root NOT optional\n"

#define	D_ROOT_OPT "%s: root IS optional\n"

#define	D_KERNEL_MATCH "%s: kernel match: %s, %s\n"

#define	D_MODULE_MATCH "%s: module match: %s, %s\n"

#define	D_UPGRADE_FROM_MULTIBOOT \
	"%s: upgrading entry from dboot to multiboot: root = %s\n"

#define	D_ENTRY_NOT_FOUND_CREATING \
	"%s: boot entry not found in menu. Creating new entry, findroot = %s\n"

#define	D_CHANGING_TITLE "%s: changing title to: %s\n"

#define	D_ADDING_FINDROOT_LINE "%s: adding findroot line: %s\n"

#define	D_ADDING_KERNEL_DOLLAR "%s: adding new kernel$ line: %s\n"

#define	D_ADDING_MODULE_DOLLAR "%s: adding new module$ line: %s\n"

#define	D_GET_GRUBROOT_SUCCESS \
	"%s: get_grubroot success. osroot=%s, osdev=%s, menu_root=%s\n"

#define	D_GET_GRUBROOT_FAILURE \
	"%s: get_grubroot failed. osroot=%s, osdev=%s, menu_root=%s\n"

#define	D_UPDATED_BOOT_ENTRY \
	"%s: updated boot entry bam_zfs=%d, grubsign = %s\n"

#define	D_UPDATED_HV_ENTRY \
	"%s: updated HV entry bam_zfs=%d, grubsign = %s\n"

#define	D_UPDATED_MULTIBOOT_ENTRY \
	"%s: updated MULTIBOOT entry grubsign = %s\n"

#define	D_UPDATED_FAILSAFE_ENTRY \
	"%s: updated FAILSAFE entry failsafe_kernel = %s\n"

#define	D_GET_GRUBSIGN_SUCCESS "%s: successfully created grubsign %s\n"

#define	D_ADD_LINE_PREV_NEXT "%s: previous next exists\n"

#define	D_ADD_LINE_NOT_PREV_NEXT "%s: previous next does not exist\n"

#define	D_ADD_LINE_LAST_LINE_IN_ENTRY "%s: last line in entry\n"

#define	D_ADD_LINE_LAST_LINE_IN_MENU "%s: last line in menu\n"

#define	D_FOUND_FINDROOT "%s: found entry with matching findroot: %s\n"

#define	D_SAVING_DEFAULT_TO "%s: saving default to: %s\n"

#define	D_SAVED_DEFAULT_TO "%s: saved default to lineNum=%d, entryNum=%d\n"

#define	D_RESTORE_DEFAULT_NULL "%s: NULL saved default\n"

#define	D_RESTORE_DEFAULT_STR "%s: saved default string: %s\n"

#define	D_RESTORED_DEFAULT_TO "%s: restored default to entryNum: %d\n"

#define	D_FUNC_ENTRY0 "%s: entered. No args\n"

#define	D_FUNC_ENTRY1 "%s: entered. arg: %s\n"

#define	D_FUNC_ENTRY2 "%s: entered. args: %s %s\n"

#define	D_FUNC_ENTRY3 "%s: entered. args: %s %s %s\n"

#define	D_FUNC_ENTRY4 "%s: entered. args: %s %s %s %s\n"

#define	D_OPT_NULL "%s: opt is NULL\n"

#define	D_TRANSIENT_NOTFOUND "%s: transient entry not found\n"

#define	D_RESTORED_DEFAULT "%s: restored old default\n"

#define	D_ENTRY_EQUALS "%s: opt has entry=: %s\n"

#define	D_ENTRY_SET_IS "%s: default set to %d, set_default ret=%d\n"

#define	D_REBOOT_RESOLVED_PARTIAL "%s: resolved partial path: %s\n"

#define	D_FOUND_GLOBAL "%s: found matching global command: %s\n"

#define	D_SET_GLOBAL_WROTE_NEW "%s: wrote new global line: %s\n"

#define	D_SET_GLOBAL_REPLACED "%s: replaced global line with: %s\n"

#define	D_ARCHIVE_LINE_NONE "%s: no module/archive line for entry: %d\n"

#define	D_ARCHIVE_LINE_NOCHANGE "%s: no change for line: %s\n"

#define	D_ARCHIVE_LINE_REPLACED "%s: replaced for line: %s\n"

#define	D_GET_SET_KERNEL_NO_RC "%s: no RC entry, nothing to report\n"

#define	D_GET_SET_KERNEL_ALREADY "%s: no reset, already has default\n"

#define	D_GET_SET_KERNEL_RESTORE_DEFAULT "%s: resetting to default\n"

#define	D_GET_SET_KERNEL_RESET_KERNEL_SET_ARG \
"%s: reset kernel to default, but retained old args: %s\n"

#define	D_GET_SET_KERNEL_RESET_ARG_SET_KERNEL \
"%s: reset args to default, but retained old kernel: %s\n"

#define	D_GET_SET_KERNEL_REPLACED_KERNEL_SAME_ARG \
"%s: rc line exists, replaced kernel, same args: %s\n"

#define	D_GET_SET_KERNEL_SAME_KERNEL_REPLACED_ARG \
"%s: rc line exists, same kernel, but new args: %s\n"

#define	D_SET_OPTION "%s: setting %s option to %s\n"

#define	D_EXPAND_PATH "%s: expanded path: %s\n"

#define	D_GET_SET_KERNEL_ARGS "%s: read menu boot-args: %s\n"

#define	D_GET_SET_KERNEL_KERN "%s: read menu boot-file: %s\n"

#define	D_BAM_ROOT "%s: bam_alt_root: %d, bam_root: %s\n"

#define	D_REBOOT_OPTION "%s: reboot with args, option specified: kern=%s\n"

#define	D_REBOOT_ABSPATH "%s: reboot with args, abspath specified: kern=%s\n"

#define	D_GET_SET_KERNEL_NEW_KERN "%s: new kernel=%s\n"

#define	D_GET_SET_KERNEL_NEW_ARG "%s: new args=%s\n"

#define	D_Z_MENU_GET_POOL_FROM_SPECIAL "%s: derived pool=%s from special\n"

#define	D_Z_GET_MENU_MOUNT_TOP_DATASET "%s: top dataset mountpoint=%s\n"

#define	D_Z_GET_MENU_MENU_ROOT "%s: zfs menu_root=%s\n"

#define	D_Z_IS_LEGACY "%s: is legacy, pool=%s\n"

#define	D_Z_IS_NOT_LEGACY "%s: is *NOT* legacy, pool=%s\n"

#define	D_Z_MOUNT_TOP_NONLEG_MOUNTED_ALREADY \
	"%s: non-legacy pool %s mounted already\n"

#define	D_Z_MOUNT_TOP_NONLEG_MOUNTED_NOT_ALREADY \
	"%s: non-legacy pool %s *NOT* already mounted\n"

#define	D_Z_MOUNT_TOP_NONLEG_MOUNTED_NOW \
	"%s: non-legacy pool %s mounted now\n"

#define	D_Z_MOUNT_TOP_NONLEG_MNTPT \
	"%s: non-legacy pool %s is mounted at %s\n"

#define	D_Z_UMOUNT_TOP_ALREADY_NOP \
	"%s: pool %s was already mounted at %s, Nothing to umount\n"

#define	D_Z_UMOUNT_TOP_LEGACY \
	"%s: legacy pool %s was mounted by us, successfully unmounted\n"

#define	D_Z_UMOUNT_TOP_NONLEG \
	"%s: nonleg pool %s was mounted by us, successfully unmounted\n"

#define	D_Z_MOUNT_TOP_LEG_ALREADY \
	"%s: legacy pool %s already mounted\n"

#define	D_Z_MOUNT_TOP_LEG_MNTPT_ABS \
	"%s: legacy pool %s mount-point %s absent\n"

#define	D_Z_MOUNT_TOP_LEG_MNTPT_PRES \
	"%s: legacy pool %s mount-point %s is already present\n"

#define	D_Z_MOUNT_TOP_LEG_MOUNTED \
	"%s: legacy pool %s successfully mounted at %s\n"

#define	D_Z_MOUNT_TOP_LEG_MOUNTED \
	"%s: legacy pool %s successfully mounted at %s\n"

#define	D_GET_MOUNTPOINT_RET \
	"%s: returning mount-point for special %s: %s\n"

#define	D_IS_ZFS "%s: is a ZFS filesystem: %s\n"

#define	D_IS_NOT_ZFS "%s: is *NOT* a ZFS filesystem: %s\n"

#define	D_IS_UFS "%s: is a UFS filesystem: %s\n"

#define	D_IS_NOT_UFS "%s: is *NOT* a UFS filesystem: %s\n"

#define	D_IS_PCFS "%s: is a PCFS filesystem: %s\n"

#define	D_IS_NOT_PCFS "%s: is *NOT* a PCFS filesystem: %s\n"

#define	D_MENU_PATH "%s: menu path is: %s\n"

#define	D_FREEING_LU_SIGNS "%s: feeing LU sign: %s\n"

#define	D_OPEN_FAIL "%s: failed to open %s: %s\n"

#define	D_GET_POOL_OSDEV "%s: osdev arg = %s\n"

#define	D_GET_POOL_RET "%s: got pool. pool = %s\n"

#define	D_GET_GRUBSIGN_NO_EXISTING "%s: no existing grubsign for %s: %s\n"

#define	D_GET_PHYSICAL_ALREADY \
	"%s: got physical device already directly for menu_root=%s special=%s\n"

#define	D_GET_PHYSICAL_RET "%s: returning physical=%s\n"

#define	D_STRTOK_ZPOOL_STATUS "%s: strtok() zpool status line=%s\n"

#define	D_FOUND_POOL_IN_ZPOOL_STATUS "%s: found pool name: %s in zpool status\n"

#define	D_COUNTING_ZFS_PHYS "%s: counting phys slices in zpool status: %d\n"

#define	D_ADDING_ZFS_PHYS "%s: adding phys slice=%s from pool %s status\n"

#define	D_FUNC_ENTRY_N1 "%s: entering args: %d\n"

#define	D_UFS_SVM_SHORT "%s: short SVM name for special=%s is %s\n"

#define	D_UFS_SVM_ONE_COMP "%s: single component %s for metadevice %s\n"

#define	D_CHECK_ON_BOOTDISK "%s: checking if phys-device=%s is on bootdisk\n"

#define	D_IS_ON_BOOTDISK "%s: phys-device=%s *IS* on bootdisk\n"

#define	D_ROOT_OPT_NOT_ZFS "%s: one or more non-ZFS filesystems (%s, %s)\n"

#define	D_ROOT_OPTIONAL_OSPECIAL "%s: ospecial=%s for osroot=%s\n"

#define	D_ROOT_OPTIONAL_MSPECIAL "%s: mspecial=%s for menu_root=%s\n"

#define	D_ROOT_OPTIONAL_FIXED_OSPECIAL "%s: FIXED ospecial=%s for osroot=%s\n"

#define	D_CHECK_CMD_CMD_NOMATCH "%s: command %s does not match %s\n"

#define	D_FINDROOT_ABSENT "%s: findroot capability absent\n"

#define	D_FINDROOT_PRESENT "%s: findroot capability present\n"

#define	D_DBOOT_PRESENT "%s: dboot capability present\n"

#define	D_XVM_PRESENT "%s: xVM capability present\n"

#define	D_IS_SPARC_DBOOT "%s: is sparc - always DBOOT\n"

#define	D_IS_DBOOT "%s: is DBOOT unix\n"

#define	D_IS_MULTIBOOT "%s: is MULTIBOOT unix\n"

#define	D_IS_XVM "%s: is xVM system\n"

#define	D_IS_NOT_XVM "%s: is *NOT* xVM system\n"

#define	D_ALREADY_BFU_TEST "%s: already done bfu test. bfu is %s present\n"

#define	D_UPDATE_LINE_BEFORE "%s: line before update: %s\n"

#define	D_UPDATE_LINE_AFTER "%s: line after update: %s\n"

#define	D_SKIP_WSPACE_PTR_NULL "%s: NULL ptr\n"

#define	D_SKIP_WSPACE_ENTRY_PTR "%s: ptr on entry: %s\n"

#define	D_SKIP_WSPACE_EXIT_PTR "%s: ptr on exit: %s\n"

#define	D_RSKIP_BSPACE_ENTRY "%s: ptr on entry: %s\n"

#define	D_RSKIP_BSPACE_EXIT "%s: ptr on exit: %s\n"

#define	D_RSKIP_BSPACE_EXIT "%s: ptr on exit: %s\n"

#define	D_NOT_MULTIBOOT_CONVERT "%s: not MULTIBOOT, not converting\n"

#define	D_TRYING_FAILSAFE_CVT_TO_DBOOT \
	"%s: trying to convert failsafe to DBOOT\n"

#define	D_NO_FAILSAFE_UNIX_CONVERT "%s: no FAILSAFE unix, not converting\n"

#define	D_CVT_CMD_KERN_DOLLAR "%s: converted kernel cmd to %s\n"

#define	D_CVT_CMD_MOD_DOLLAR "%s: converted module cmd to %s\n"

#define	D_FLAGS1_UNIX_FLAGS2_NULL "%s: NULL flags1, unix, flags2\n"

#define	D_UNIX_PRESENT "%s: unix present\n"

#define	D_UNIX_PRESENT "%s: unix present\n"

#define	D_UNIX_ABSENT "%s: unix ABSENT\n"

#define	D_FLAGS2_PRESENT "%s: flags2 present: %s\n"

#define	D_FLAGS2_ABSENT "%s: flags2 absent\n"

#define	D_FLAGS1_PRESENT "%s: flags1 present: %s\n"

#define	D_FLAGS1_ABSENT "%s: flags1 absent\n"

#define	D_FLAGS1_ONLY "%s: flags1 present: %s, unix, flags2 absent\n"

#define	D_CVTED_UNIX "%s: converted unix: %s\n"

#define	D_CVTED_UNIX_AND_FLAGS "%s: converted unix with flags : %s\n"

#define	D_CVTED_KERNEL_LINE "%s: converted line is: %s\n"

#define	D_FAILSAFE_NO_CVT_NEEDED \
	"%s: failsafe module line needs no conversion: %s\n"

#define	D_CVTED_MODULE "%s: converted module line is: %s\n"

#define	D_FORCE_HAND_CVT "%s: force specified, no warnings about hand entries\n"

#define	D_FOUND_HAND "%s: found hand entry #: %d\n"

#define	D_SKIP_ENTRY "%s: skipping hand entry #: %d\n"

#define	D_SKIP_ROOT_ENTRY "%s: skipping root entry #: %d\n"

#define	D_ENTRY_END "%s: entry has ended\n"

#define	D_SKIP_NULL "%s: skipping NULL line\n"

#define	D_ROOT_MATCH "%s: found matching root line: %s,%s\n"

#define	D_FINDROOT_MATCH "%s: found matching findroot line: %s,%s\n"

#define	D_NO_ROOT_FINDROOT "%s: no root or findroot and root is opt: %d\n"

#define	D_NO_MATCH "%s: no matching entry found\n"

#define	D_ALREADY_FINDROOT "%s: entry %d already converted to findroot\n"

#define	D_ADDED_FINDROOT "%s: added findroot line: %s\n"

#define	D_ADDED_NUMBERING "%s: updating numbering\n"

#define	D_ALREADY_HV "%s: entry %d already converted to xvm HV\n"

#define	D_ADDED_XVM_ENTRY "%s: added xVM HV entry via add_boot_entry()\n"

#define	D_CVT_KERNEL_FAIL "%s: cvt_kernel_line() failed\n"

#define	D_CVT_KERNEL_MSG "%s: BAM_MSG returned from cvt_kernel_line()\n"

#define	D_CVT_MODULE_FAIL "%s: cvt_module_line() failed\n"

#define	D_CVT_MODULE_MSG "%s: BAM_MSG returned from cvt_module_line()\n"

#define	D_UPDATED_NUMBERING "%s: updated numbering\n"

#define	D_FREEING_ROOT "%s: freeing root line: %s\n"

#define	D_MENU_ROOT "%s: menu root is %s\n"

#define	D_CLEAN_MENU_ROOT "%s: cleaned menu root is <%s>\n"

#define	D_BOOT_GET_CAP_FAILED "%s: Failed to get boot capability\n"

#define	D_WRITING_MENU_ROOT "%s: writing menu to clean-menu-root: <%s>\n"

#define	D_WROTE_FILE "%s: wrote file successfully: %s\n"

#define	D_FLIST_FAIL "%s: failed to open archive filelist: %s: %s\n"

#define	D_NOT_ARCHIVE_BOOT "%s: not a boot archive based Solaris instance: %s\n"

#define	D_IS_ARCHIVE_BOOT "%s: *IS* a boot archive based Solaris instance: %s\n"

#define	D_NO_GRUB_DIR "%s: Missing GRUB directory: %s\n"

#define	D_RDONLY_FS "%s: is a READONLY filesystem: %s\n"

#define	D_RDWR_FS "%s: is a RDWR filesystem: %s\n"

#define	D_ENTRY_NEW "%s: new boot entry alloced\n"

#define	D_ENTRY_NEW_FIRST "%s: (first) new boot entry created\n"

#define	D_ENTRY_NEW_LINKED "%s: new boot entry linked in\n"

#define	D_NOT_KERNEL_CMD "%s: not a kernel command: %s\n"

#define	D_SET_DBOOT_32 "%s: setting DBOOT|DBOOT_32 flag: %s\n"

#define	D_SET_DBOOT "%s: setting DBOOT flag: %s\n"

#define	D_SET_DBOOT_64 "%s: setting DBOOT|DBOOT_64 flag: %s\n"

#define	D_SET_DBOOT_FAILSAFE "%s: setting DBOOT|DBOOT_FAILSAFE flag: %s\n"

#define	D_SET_DBOOT_FAILSAFE_32 \
	"%s: setting DBOOT|DBOOT_FAILSAFE|DBOOT_32 flag: %s\n"

#define	D_SET_DBOOT_FAILSAFE_64 \
	"%s: setting DBOOT|DBOOT_FAILSAFE|DBOOT_64 flag: %s\n"

#define	D_SET_MULTIBOOT "%s: setting MULTIBOOT flag: %s\n"

#define	D_SET_MULTIBOOT_FAILSAFE \
	"%s: setting MULTIBOOT|MULTIBOOT_FAILSAFE flag: %s\n"

#define	D_SET_HV "%s: setting XEN HV flag: %s\n"

#define	D_REC_MKDIR "%s: making recursive directory %s\n"

#define	D_SET_HAND_KERNEL "%s: is HAND kernel flag: %s\n"

#define	D_IS_UNKNOWN_KERNEL "%s: is UNKNOWN kernel entry: %s\n"

#define	D_NOT_MODULE_CMD "%s: not module cmd: %s\n"

#define	D_BOOTADM_LU_MODULE "%s: bootadm or LU module cmd: %s\n"

#define	D_IS_HAND_MODULE "%s: is HAND module: %s\n"

#define	D_IS_UNKNOWN_MODULE "%s: is UNKNOWN module: %s\n"

#define	D_IS_BOOTADM_ENTRY "%s: is bootadm(1M) entry: %s\n"

#define	D_IS_LU_ENTRY "%s: is LU entry: %s\n"

#define	D_IS_ROOT_CMD "%s: setting ROOT: %s\n"

#define	D_IS_FINDROOT_CMD "%s: setting FINDROOT: %s\n"

#define	D_CMDLINE  "%s: executing: %s\n"

#define	D_IS_CHAINLOADER_CMD "%s: setting CHAINLOADER: %s\n"

#define	D_NO_BOOTENVRC "could not open %s: %s\n"

#define	D_ADD_FINDROOT_NUM "%s: findroot added: line#: %d: entry#: %d\n"

#define	D_FREEING_LINE "%s: freeing line: %d\n"

#define	D_FREEING_ENTRY "%s: freeing entry: %d\n"

#define	D_CREATED_DISKMAP "%s: created diskmap file: %s\n"

#define	D_CREATE_DISKMAP_FAIL "%s: FAILED to create diskmap file: %s\n"

#define	D_NO_SIGNDIR "%s: no sign dir: %s\n"

#define	D_EXIST_BACKUP_SIGNS \
"%s: found backup signs: zfs=%s ufs=%s lu=%s\n"

#define	D_RETURN_SUCCESS "%s: returning SUCCESS\n"

#define	D_RETURN_FAILURE "%s: returning FAILURE\n"

#define	D_RETURN_RET "%s: returning ret = %d\n"

#define	D_EXIST_PRIMARY_SIGN "%s: existing primary sign: %s\n"

#define	D_EXIST_BACKUP_SIGN "%s: existing backup sign: %s\n"

#define	D_EXIST_PRIMARY_SIGNS \
"%s: found primary signs: zfs=%s ufs=%s lu=%s\n"

#define	D_CHECK_UFS_EXIST_SIGN "%s: checking for existing UFS sign\n"

#define	D_CHECK_ZFS_EXIST_SIGN "%s: checking for existing ZFS sign\n"

#define	D_NO_MNTPT "%s: no mount-point for special=%s and fstype=%s\n"

#define	D_CACHE_MNTS \
"%s: caching mount: special=%s, mntpt=%s, fstype=%s\n"

#define	D_MNTTAB_HASH_NOMATCH "%s: no match in cache for: %s\n"

#define	D_MNTTAB_HASH_MATCH "%s: *MATCH* in cache for: %s\n"

#define	D_NO_SIGN_TO_LIST "%s: no sign on %s to add to signlist\n"

#define	D_SIGN_LIST_PUTS_DONE \
"%s: successfully added sign on %s to signlist\n"

#define	D_SLICE_ENOENT "%s: slice does not exist: %s\n"

#define	D_VTOC_SIZE_ZERO "%s: VTOC: skipping 0-length slice: %s\n"

#define	D_VTOC_NOT_ROOT_TAG "%s: VTOC: unsupported tag, skipping: %s\n"

#define	D_VTOC_ROOT_TAG "%s: VTOC: supported tag, checking: %s\n"

#define	D_VTOC_NOT_RDWR_FLAG "%s: VTOC: non-RDWR flag, skipping: %s\n"

#define	D_VTOC_RDWR_FLAG "%s: VTOC: RDWR flag, checking: %s\n"

#define	D_EFI_SIZE_ZERO "%s: EFI: skipping 0-length slice: %s\n"

#define	D_EFI_NOT_ROOT_TAG "%s: EFI: unsupported tag, skipping: %s\n"

#define	D_EFI_ROOT_TAG "%s: EFI: supported tag, checking: %s\n"

#define	D_EFI_NOT_RDWR_FLAG "%s: EFI: non-RDWR flag, skipping: %s\n"

#define	D_EFI_RDWR_FLAG "%s: EFI: RDWR flag, checking: %s\n"

#define	D_SLICE0_ENOENT "%s: slice 0 does not exist: %s\n"

#define	D_VTOC_READ_FAIL "%s: VTOC: failed to read: %s\n"

#define	D_VTOC_INVALID "%s: VTOC: is INVALID: %s\n"

#define	D_VTOC_UNKNOWN_ERR "%s: VTOC: unknown error while reading: %s\n"

#define	D_VTOC_NOTSUP "%s: VTOC: not supported: %s\n"

#define	D_VTOC_READ_SUCCESS "%s: VTOC: SUCCESS reading: %s\n"

#define	D_VTOC_UNKNOWN_RETCODE "%s: VTOC: READ: unknown return code: %s\n"

#define	D_EFI_READ_FAIL "%s: EFI: failed to read: %s\n"

#define	D_EFI_INVALID "%s: EFI: is INVALID: %s\n"

#define	D_EFI_UNKNOWN_ERR "%s: EFI: unknown error while reading: %s\n"

#define	D_EFI_NOTSUP "%s: EFI: not supported: %s\n"

#define	D_EFI_READ_SUCCESS "%s: EFI: SUCCESS reading: %s\n"

#define	D_EFI_UNKNOWN_RETCODE "%s: EFI: READ: unknown return code: %s\n"

#define	D_NOT_VTOC_OR_EFI "%s: disk has neither VTOC nor EFI: %s\n"

#define	D_SKIP_SLICE_NOTZERO "%s: skipping non-s0 slice: %s\n"

#define	D_FOUND_HOLE_SIGNLIST "%s: found hole %d in sign list.\n"

#define	D_ZERO_LEN_SIGNLIST "%s: generated zero length signlist: %s.\n"

#define	D_CREATED_ZFS_SIGN "%s: created ZFS sign: %s\n"

#define	D_CREATE_NEW_UFS "%s: created new UFS sign\n"

#define	D_CREATE_NEW_ZFS "%s: created new ZFS sign\n"

#define	D_CREATED_NEW_SIGN "%s: created new sign: %s\n"

#define	D_FOUND_IN_BACKUP "%s: found sign (%s) in backup.\n"

#define	D_NOT_FOUND_IN_EXIST_BACKUP \
	"%s: backup exists but sign %s not found\n"

#define	D_BACKUP_NOT_EXIST "%s: no backup file (%s) found.\n"

#define	D_BACKUP_DIR_NOEXIST "%s: backup dir (%s) does not exist.\n"

#define	D_SET_BACKUP_UFS "%s: setting UFS backup sign\n"

#define	D_SET_BACKUP_ZFS "%s: setting ZFS backup sign\n"

#define	D_PRIMARY_NOT_EXIST "%s: primary sign (%s) does not exist\n"

#define	D_PRIMARY_DIR_NOEXIST "%s: primary signdir (%s) does not exist\n"

#define	D_SET_PRIMARY_UFS "%s: setting UFS primary sign\n"

#define	D_SET_PRIMARY_ZFS "%s: setting ZFS primary sign\n"

#define	D_GET_TITLE "%s: got title: %s\n"

#define	D_GET_SPECIAL_NOT_IN_MNTTAB \
	"%s: Cannot get special file:  mount-point %s not in mnttab\n"

#define	D_GET_SPECIAL "%s: returning special: %s\n"

#define	D_MENU_WRITE_ENTER "%s: entered menu_write() for root: <%s>\n"

#define	D_GOT_SVC_STATUS "%s: got status for service: %s\n"

#define	D_SVC_ONLINE "%s: service is online: %s\n"

#define	D_SVC_NOT_ONLINE "%s: service is *NOT* online(%s): %s\n"

#define	D_SVC_ALREADY_ONLINE "%s: service is already online: %s\n"

#define	D_SVC_ONLINE_INITIATED "%s: initiated online of service: %s\n"

#define	D_SVC_NOW_ONLINE "%s: service is NOW online: %s\n"

#define	D_NOT_LU_BE "%s: not a Live Upgrade BE\n"

#define	D_NO_CKSUM_FILE "%s: checksum file absent: %s\n"

#define	D_CKSUM_FILE_OPENED "%s: opened checksum file: %s\n"

#define	D_CKSUM_FILE_READ "%s: read checksum file: %s\n"

#define	D_CKSUM_FILE_PARSED "%s: parsed checksum file: %s\n"

#define	D_CKSUM_GEN_SUCCESS "%s: successfully generated checksum\n"

#define	D_CKSUM_GEN_OUTPUT_VALID "%s: generated checksum output valid\n"

#define	D_CKSUM_GEN_PARSED "%s: successfully parsed generated checksum\n"

#define	D_CKSUM_NO_CHANGE "%s: no change in checksum of GRUB menu\n"

#define	D_CKSUM_HAS_CHANGED "%s: checksum of GRUB menu has changed\n"

#define	D_PROPAGATED_MENU "%s: successfully propagated GRUB menu\n"

#define	D_CREATED_BACKUP "%s: successfully created backup GRUB menu: %s\n"

#define	D_PROPAGATED_BACKUP "%s: successfully propagated backup GRUB menu: %s\n"

#define	D_CREATED_CKSUM_FILE "%s: successfully created checksum file: %s\n"

#define	D_PROPAGATED_CKSUM_FILE \
	"%s: successfully propagated checksum file: %s\n"

#define	D_PROPAGATED_BOOTADM \
	"%s: successfully propagated bootadm: %s\n"

#ifdef	__cplusplus
}
#endif

#endif /* _MESSAGE_H */